Tag: cws_src680_dba205b
User: oj      
Date: 2006/08/03 03:05:26

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

Log:
 ensure that a connection exists

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.32&r2=1.32.8.1
Delta lines:  +4 -3
-------------------
--- AppController.cxx   19 Jul 2006 22:33:43 -0000      1.32
+++ AppController.cxx   3 Aug 2006 10:05:23 -0000       1.32.8.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: AppController.cxx,v $
  *
- *  $Revision: 1.32 $
+ *  $Revision: 1.32.8.1 $
  *
- *  last change: $Author: kz $ $Date: 2006/07/19 22:33:43 $
+ *  last change: $Author: oj $ $Date: 2006/08/03 10:05:23 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -1878,6 +1878,7 @@
                                                
xRename.set(xContainer->getByName(*aList.begin()),UNO_QUERY);
                         sal_Int32 nCommandType = eType == E_QUERY ? 
CommandType::QUERY : CommandType::TABLE;
 
+                        ensureConnection();
                         pNameChecker.reset( new DynamicTableOrQueryNameCheck( 
getConnection(), nCommandType ) );
                                            aDialog.reset( new OSaveAsDlg(
                             getView(), nCommandType, getORB(), getConnection(),

File [changed]: AppControllerDnD.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppControllerDnD.cxx?r1=1.16.20.2&r2=1.16.20.3
Delta lines:  +3 -2
-------------------
--- AppControllerDnD.cxx        31 Jul 2006 12:00:34 -0000      1.16.20.2
+++ AppControllerDnD.cxx        3 Aug 2006 10:05:23 -0000       1.16.20.3
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: AppControllerDnD.cxx,v $
  *
- *  $Revision: 1.16.20.2 $
+ *  $Revision: 1.16.20.3 $
  *
- *  last change: $Author: oj $ $Date: 2006/07/31 12:00:34 $
+ *  last change: $Author: oj $ $Date: 2006/08/03 10:05:23 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -820,6 +820,7 @@
 
                                // here we have everything needed to create a 
new query object ...
                                // ... ehm, except a new name
+                ensureConnection();
                 DynamicTableOrQueryNameCheck aNameChecker( getConnection(), 
CommandType::QUERY );
                                OSaveAsDlg aAskForName( getView(),
                                                                                
CommandType::QUERY,




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

Reply via email to