Skip to content

Commit 57dd877

Browse files
committed
dbmanager: fix 'load as new layer' (fixes #9548)
1 parent 4d660d1 commit 57dd877

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/db_manager/dlg_sql_window.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def loadSqlLayer(self):
168168
QMessageBox.warning(self, self.tr( "Sorry" ), self.tr( "You must fill the required fields: \ngeometry column - column with unique integer values" ) )
169169
return
170170

171-
query = self.getSql()
171+
query = self.editSql.text()
172172
if query == "":
173173
return
174174

@@ -199,7 +199,7 @@ def loadSqlLayer(self):
199199
QApplication.restoreOverrideCursor()
200200

201201
def fillColumnCombos(self):
202-
query = self.getSql()
202+
query = self.editSql.text()
203203
if query == "": return
204204

205205
QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))

0 commit comments

Comments
 (0)