From 082eaa4386ffb7bd024f42028f4a6c71b6bca569 Mon Sep 17 00:00:00 2001 From: stv Date: Fri, 16 Dec 2005 08:05:29 +0000 Subject: [PATCH] no message --- src/CAF/CAF_Study.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/CAF/CAF_Study.cxx b/src/CAF/CAF_Study.cxx index 7cd3ddc61..176023a1f 100755 --- a/src/CAF/CAF_Study.cxx +++ b/src/CAF/CAF_Study.cxx @@ -140,7 +140,13 @@ bool CAF_Study::saveDocumentAs( const QString& fname ) status = false; } - return status && SUIT_Study::saveDocumentAs( fname ); + if ( status ) + status = SUIT_Study::saveDocumentAs( fname ); + + if ( status ) + myModifiedCnt = 0; + + return status; } bool CAF_Study::openTransaction() @@ -227,7 +233,8 @@ bool CAF_Study::isModified() const if ( myStdDoc.IsNull() ) return false; - return myStdDoc->IsModified(); +// return myStdDoc->IsModified(); + return myModifiedCnt; } /*! -- 2.39.2