IDE, DebuggerOptions: Workaround for ONE occurrence of issue #0036306 / Crash in gtk with combination of TFrame, TToolbar dropdown menu and TPopupMenu and dynamic menu item creation

git-svn-id: trunk@62313 -
This commit is contained in:
martin 2019-11-29 02:54:48 +00:00
parent 065d7f1e25
commit 44c48aaf97

View File

@ -522,6 +522,11 @@ var
m: TMenuItem;
i: Integer;
begin
{$IFDEF linux}
// Workaround for issue https://bugs.freepascal.org/view.php?id=36305 https://bugs.freepascal.org/view.php?id=36306
tbDropMenu := TPopupMenu.Create(Self);
tbSelect.DropdownMenu := tbDropMenu;
{$ENDIF}
tbDropMenu.Items.Clear;
for i := 0 to FCopiedDbgPropertiesConfigList.Count - 1 do
if (not FCopiedDbgPropertiesConfigList.Opt[i].IsDeleted) and