Fix explain 'NoneType' error
This commit is contained in:
@@ -527,6 +527,9 @@ class EditorTab(QWidget):
|
|||||||
self._stop_btn.setEnabled(False)
|
self._stop_btn.setEnabled(False)
|
||||||
|
|
||||||
def _explain(self):
|
def _explain(self):
|
||||||
|
if not self._driver:
|
||||||
|
self._results.show_error("No active connection. Connect to a database first.")
|
||||||
|
return
|
||||||
sql = self._editor.selected_or_all().strip()
|
sql = self._editor.selected_or_all().strip()
|
||||||
if not sql:
|
if not sql:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user