mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
allow execution of the selected text in the SQL window
This commit is contained in:
parent
ddb406d944
commit
06c6ca0044
@ -130,7 +130,13 @@ class DlgSqlWindow(QDialog, Ui_Dialog):
|
||||
self.editSql.setFocus()
|
||||
|
||||
def executeSql(self):
|
||||
sql = self.editSql.text()
|
||||
|
||||
sql = ""
|
||||
if self.editSql.hasSelectedText():
|
||||
sql = self.editSql.selectedText()
|
||||
else:
|
||||
sql = self.editSql.text()
|
||||
|
||||
if sql == "":
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user