Kaydet (Commit) 8e43a02f authored tarafından Gregor Hartmann's avatar Gregor Hartmann

#96223# dont allow two save MessageBoxes at on time

üst 86e33bbd
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: appwin.cxx,v $ * $RCSfile: appwin.cxx,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change: $Author: gh $ $Date: 2001-06-08 13:44:14 $ * last change: $Author: gh $ $Date: 2002-03-20 09:05:56 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -567,6 +567,8 @@ USHORT AppWin::QuerySave( QueryBits nBits ) ...@@ -567,6 +567,8 @@ USHORT AppWin::QuerySave( QueryBits nBits )
else else
nResult = RET_NO; nResult = RET_NO;
BOOL bAlwaysEnableInput = pFrame->IsAlwaysEnableInput();
pFrame->AlwaysEnableInput( FALSE );
if( ( ( IsModified() || bSaveNotDirty ) && bQueryDirty ) || ( DiskFileChanged( SINCE_LAST_LOAD ) && bQueryDiskChanged ) ) if( ( ( IsModified() || bSaveNotDirty ) && bQueryDirty ) || ( DiskFileChanged( SINCE_LAST_LOAD ) && bQueryDiskChanged ) )
{ {
ToTop(); ToTop();
...@@ -578,7 +580,7 @@ USHORT AppWin::QuerySave( QueryBits nBits ) ...@@ -578,7 +580,7 @@ USHORT AppWin::QuerySave( QueryBits nBits )
else else
nResult = QueryBox( this, ResId( IDS_ASK_DISKCHANGE_SAVE ) ).Execute(); nResult = QueryBox( this, ResId( IDS_ASK_DISKCHANGE_SAVE ) ).Execute();
} }
pFrame->AlwaysEnableInput( bAlwaysEnableInput );
USHORT nReturn; USHORT nReturn;
switch( nResult ) switch( nResult )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment