anchor.diff:            result := true
           else
             result := ( Application.MessageBox( PChar(STR_55), PChar(STR_56), MB_YESNO+MB_ICONEXCLAMATION+MB_DEFBUTTON2+MB_APPLMODAL) = ID_YES );
  +
  +        if closing and not wasMinimized then begin
  +           Application.Restore;
  +        end;
  +
         finally
           {$IFDEF MJ_DEBUG}
           Log.Add( 'CheckModified result: ' + BOOLARRAY[result] );
  
positive.code:             end;
            end;
          end;
          if closing then
             Application.Minimize;  // Liberate the screen to let the user do other things while keyNote is closing
  
          {$IFDEF MJ_DEBUG}
          Log.Add( '-- Saving on CHECKMODIFIED' );
  
negative.code: // CheckModified
  //=================================================================
  function CheckModified( const Warn : boolean; const closing: boolean ) : boolean;
  var
     wasMinimized: boolean;
  begin
    with Form_Main do begin
  
  