Skip to content

Commit

Permalink
[bugfix] Fix the whole text instead of the selected part in db_manage…
Browse files Browse the repository at this point in the history
…r save SQL file. fixes #30616
  • Loading branch information
lbartoletti authored and nyalldawson committed Jul 22, 2019
1 parent 2b554d8 commit 81c4b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/dlg_sql_window.py
Expand Up @@ -237,7 +237,7 @@ def saveAsFilePreset(self):
settings = QgsSettings()
lastDir = settings.value('DB_Manager/lastDirSQLFIle', "")

query = self._getSqlQuery()
query = self.editSql.text()
if query == "":
return

Expand Down

0 comments on commit 81c4b81

Please sign in to comment.