Explorar o código

+ Prevent error message after program terminates.

git-svn-id: trunk@6936 -
daniel %!s(int64=18) %!d(string=hai) anos
pai
achega
0b3ddb0b82
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      ide/fpmrun.inc

+ 2 - 1
ide/fpmrun.inc

@@ -99,7 +99,8 @@ begin
      else
       Debugger^.TraceNext;
     end;}
-  Debugger^.AnnotateError;
+  if Debugger^.IsRunning then
+    Debugger^.AnnotateError;
 {$else NODEBUG}
   NoDebugger;
 {$endif NODEBUG}