mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-05 00:04:40 -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()
|
self.editSql.setFocus()
|
||||||
|
|
||||||
def executeSql(self):
|
def executeSql(self):
|
||||||
sql = self.editSql.text()
|
|
||||||
|
sql = ""
|
||||||
|
if self.editSql.hasSelectedText():
|
||||||
|
sql = self.editSql.selectedText()
|
||||||
|
else:
|
||||||
|
sql = self.editSql.text()
|
||||||
|
|
||||||
if sql == "":
|
if sql == "":
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user