Skip to content

Commit

Permalink
allow execution of the selected text in the SQL window
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Dec 19, 2014
1 parent ddb406d commit 06c6ca0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/plugins/db_manager/dlg_sql_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,13 @@ def clearSql(self):
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

Expand Down

0 comments on commit 06c6ca0

Please sign in to comment.