We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31ba8bf commit da07591Copy full SHA for da07591
source/main.pas
@@ -12047,8 +12047,13 @@ procedure TMainForm.LoadRecentFilter(Sender: TObject);
12047
// Event handler for both dynamic popup menu items and filter combobox
12048
if Sender is TMenuItem then
12049
key := (Sender as TMenuItem).Tag
12050
- else
12051
- key := (Sender as TComboBox).ItemIndex+1;
+ else if Sender is TComboBox then
+ key := (Sender as TComboBox).ItemIndex+1
12052
+ else begin
12053
+ Beep;
12054
+ LogSQL('Unhandled '+Sender.ClassName+' in LoadRecentFilter');
12055
+ Exit;
12056
+ end;
12057
Path := AppSettings.AppendDelimiter(GetRegKeyTable) + REGKEY_RECENTFILTERS;
12058
if AppSettings.SessionPathExists(Path) then begin
12059
AppSettings.SessionPath := Path;
0 commit comments