Skip to content
Permalink
Browse files

[dbmanager] Fix exception on older Qt builds

Fixes #19309
  • Loading branch information
nyalldawson committed Jun 29, 2018
1 parent e883993 commit 9d8202b66aee362d796d78b1f1bebe00948c6ae9
Showing with 5 additions and 1 deletion.
  1. +5 −1 python/plugins/db_manager/dlg_sql_window.py
@@ -96,7 +96,11 @@ def __init__(self, iface, db, parent=None):
self.btnCancel.setText(self.tr("Cancel (ESC)"))
self.btnCancel.setEnabled(False)
self.btnCancel.clicked.connect(self.executeSqlCanceled)
self.btnCancel.setShortcut(QKeySequence.Cancel)
try:
self.btnCancel.setShortcut(QKeySequence.Cancel)
except AttributeError:
# QKeySequence.Cancel only available in Qt >= 5.6
pass
self.progressBar.setEnabled(False)
self.progressBar.setRange(0, 100)
self.progressBar.setValue(0)

0 comments on commit 9d8202b

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