Fix explain 'NoneType' error

This commit is contained in:
2026-05-22 09:34:35 -04:00
parent aae47125cd
commit 82c8a6bf84
+3
View File
@@ -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