Skip to content
Permalink
Browse files

fix some HIG and add missing translations in dbmanager

  • Loading branch information
Gustry authored and nyalldawson committed Feb 4, 2019
1 parent ab64527 commit c2f958db9ff21e00856ab3cff378eba6ee0fcef9
Showing with 1 addition and 2 deletions.
  1. +1 −2 python/plugins/db_manager/dlg_sql_window.py
@@ -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:
@@ -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())

0 comments on commit c2f958d

Please sign in to comment.
You can’t perform that action at this time.