mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Issue #744: Suspend action list on mainform while preferences dialog is open, so changes on the Shortcuts tab do not trigger some action, probably even with a crash
This commit is contained in:
@ -13,7 +13,7 @@ uses
|
||||
StdCtrls, ComCtrls, ExtCtrls, SynEditHighlighter, SynHighlighterSQL,
|
||||
SynEdit, SynMemo, VirtualTrees, SynEditKeyCmds, ActnList, StdActns, Menus,
|
||||
dbstructures, gnugettext, Vcl.Themes, Vcl.Styles, SynRegExpr, Generics.Collections,
|
||||
Vcl.ImageCollection, extra_controls, theme_preview, Vcl.Buttons;
|
||||
Vcl.ImageCollection, extra_controls, theme_preview, Vcl.Buttons, System.Actions;
|
||||
|
||||
type
|
||||
TShortcutItemData = record
|
||||
@ -465,6 +465,7 @@ begin
|
||||
mtInformation,
|
||||
[mbOk]);
|
||||
end;
|
||||
MainForm.ActionList1.State := asNormal;
|
||||
end;
|
||||
|
||||
|
||||
@ -739,6 +740,9 @@ begin
|
||||
chkAskFileSave.Checked := AppSettings.ReadBool(asPromptSaveFileOnTabClose);
|
||||
chkRestoreTabs.Checked := AppSettings.ReadBool(asRestoreTabs);
|
||||
|
||||
// Disable global shortcuts
|
||||
MainForm.ActionList1.State := asSuspended;
|
||||
|
||||
FRestartOptionTouched := False;
|
||||
btnApply.Enabled := False;
|
||||
screen.Cursor := crdefault;
|
||||
|
Reference in New Issue
Block a user