IDE: fixed crash on quit, bug #11536

git-svn-id: trunk@15536 -
This commit is contained in:
mattias 2008-06-23 12:27:51 +00:00
parent 7172b748f4
commit 8be0e41f40

View File

@ -1539,6 +1539,9 @@ procedure TDebugManager.UpdateButtonsAndMenuItems;
var
DebuggerInvalid: boolean;
begin
if (MainIDE=nil) or (MainIDE.ToolStatus = itExiting)
then exit;
DebuggerInvalid:=(FDebugger=nil) or (MainIDE.ToolStatus<>itDebugger);
with MainIDEBar do begin
// For 'run' and 'step' bypass 'idle', so we can set the filename later