Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #12193 - problem with update of SQL query in DB manager
In the scenario described in the bug report, the selected text was empty,
but editor's hasSelectedText() would still return True
  • Loading branch information
wonder-sk committed Feb 20, 2015
1 parent d34eaf0 commit c3d9f10
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/plugins/db_manager/dlg_sql_window.py
Expand Up @@ -140,10 +140,8 @@ def clearSql(self):

def executeSql(self):

sql = ""
if self.editSql.hasSelectedText():
sql = self.editSql.selectedText()
else:
sql = self.editSql.selectedText()
if len(sql) == 0:
sql = self.editSql.text()

if sql == "":
Expand Down

0 comments on commit c3d9f10

Please sign in to comment.