Skip to content
Permalink
Browse files

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 c3d9f10cbe10dafb928d5e6416af832c94c9fc37
Showing with 2 additions and 4 deletions.
  1. +2 −4 python/plugins/db_manager/dlg_sql_window.py
@@ -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 == "":

0 comments on commit c3d9f10

Please sign in to comment.
You can’t perform that action at this time.