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 4, 2019
1 parent ac9c6f1 commit 427cb0b
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 @@ -96,7 +96,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)
self.btnCancel.setShortcut(QKeySequence.Cancel)
Expand Down Expand Up @@ -586,7 +585,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 427cb0b

Please sign in to comment.