Fix invalid enabled state of "Explain current query" action. Closes #1239

This commit is contained in:
Ansgar Becker
2020-12-01 16:41:43 +01:00
parent 5df6149db4
commit 5edcb39453

View File

@ -6292,6 +6292,7 @@ begin
actExecuteQuery.Enabled := HasConnection and InQueryTab and NotEmpty and (not Tab.QueryRunning);
actExecuteSelection.Enabled := HasConnection and InQueryTab and HasSelection and (not Tab.QueryRunning);
actExecuteCurrentQuery.Enabled := actExecuteQuery.Enabled;
actExplainCurrentQuery.Enabled := actExecuteQuery.Enabled;
actExplainAnalyzeCurrentQuery.Enabled := actExecuteQuery.Enabled;
actSaveSQLAs.Enabled := InQueryTab and NotEmpty;
actSaveSQL.Enabled := actSaveSQLAs.Enabled and Tab.Memo.Modified;