Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix some HIG and add missing translations in dbmanager
  • Loading branch information
Gustry authored and nyalldawson committed Feb 6, 2019
1 parent ab64527 commit c2f958d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/plugins/db_manager/dlg_sql_window.py
Expand Up @@ -94,7 +94,6 @@ def __init__(self, iface, db, parent=None):
self.populateQueryHistory()
self.btnQueryHistory.toggled.connect(self.showHideQueryHistory)

self.btnCancel.setText(self.tr("Cancel (ESC)"))
self.btnCancel.setEnabled(False)
self.btnCancel.clicked.connect(self.executeSqlCanceled)
try:
Expand Down Expand Up @@ -553,7 +552,7 @@ def displayQueryBuilder(self):
self.editSql.setText(dlg.query)

def createView(self):
name, ok = QInputDialog.getText(None, "View name", "View name")
name, ok = QInputDialog.getText(None, self.tr("View Name"), self.tr("View name"))
if ok:
try:
self.db.connector.createSpatialView(name, self._getSqlQuery())
Expand Down

0 comments on commit c2f958d

Please sign in to comment.