Tag: cws_src680_dba25
User: oj      
Date: 05/03/06 22:40:24

Modified:
 /dba/dbaccess/source/ui/app/
  AppController.cxx

Log:
 #i44066# checkif doc is readonly before asking to save changes

File Changes:

Directory: /dba/dbaccess/source/ui/app/
=======================================

File [changed]: AppController.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppController.cxx?r1=1.15.2.2&r2=1.15.2.3
Delta lines:  +5 -3
-------------------
--- AppController.cxx   4 Mar 2005 08:04:52 -0000       1.15.2.2
+++ AppController.cxx   7 Mar 2005 06:40:22 -0000       1.15.2.3
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: AppController.cxx,v $
  *
- *  $Revision: 1.15.2.2 $
+ *  $Revision: 1.15.2.3 $
  *
- *  last change: $Author: oj $ $Date: 2005/03/04 08:04:52 $
+ *  last change: $Author: oj $ $Date: 2005/03/07 06:40:22 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -572,7 +572,9 @@
                    return sal_False;
            
            Reference<XModifiable> xModi(m_xDataSource,UNO_QUERY);
-           if ( m_bCurrentlyModified || (xModi.is() && xModi->isModified()) )
+        Reference<XStorable> xStor(getModel(),UNO_QUERY);
+        
+           if ( xStor.is() && !xStor->isReadonly() && (m_bCurrentlyModified || 
(xModi.is() && xModi->isModified())) )
            {
                    switch 
(ExecuteQuerySaveDocument(getView(),getStrippedDatabaseName()))
                    {




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to