mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-19 00:07:15 -04:00
Merge pull request #1741 from Gustry/master
[DB Manager] Allow execution of the selected text in the SQL window
This commit is contained in:
commit
df06057282
@ -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