fix some HIG and add missing translations in dbmanager

This commit is contained in:
Etienne Trimaille 2019-02-04 18:54:13 -04:00 committed by Nyall Dawson
parent ac9c6f1e18
commit 427cb0b27a

View File

@ -96,7 +96,6 @@ class DlgSqlWindow(QWidget, Ui_Dialog):
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)
@ -586,7 +585,7 @@ class DlgSqlWindow(QWidget, Ui_Dialog):
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())