Tag: cws_src680_mozab05 User: windly Date: 05/01/31 00:17:49 Modified: /dba/dbaccess/source/ui/dlg/ adminpages.cxx
Log: RESYNC: (1.36-1.37); FILE MERGED File Changes: Directory: /dba/dbaccess/source/ui/dlg/ ======================================= File [changed]: adminpages.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/adminpages.cxx?r1=1.36.28.1&r2=1.36.28.2 Delta lines: +24 -20 --------------------- --- adminpages.cxx 14 Jan 2005 10:39:04 -0000 1.36.28.1 +++ adminpages.cxx 31 Jan 2005 08:17:46 -0000 1.36.28.2 @@ -344,16 +344,19 @@ { m_pAdminDialog->saveDatasource(); OGenericAdministrationPage::implInitControls(*m_pItemSetHelper->getOutputSet(), sal_True); + sal_Bool bShowMessage = sal_True; try { - Reference< XConnection > xConnection = m_pAdminDialog->createConnection(); - bSuccess = xConnection.is(); - ::comphelper::disposeComponent(xConnection); + ::std::pair< Reference<XConnection>,sal_Bool> xConnection = m_pAdminDialog->createConnection(); + bShowMessage = xConnection.second; + bSuccess = xConnection.first.is(); + ::comphelper::disposeComponent(xConnection.first); } catch(Exception&) { } - + if ( bShowMessage ) + { OSQLMessageBox::MessageType eImage = OSQLMessageBox::Info; String aMessage,sTitle; sTitle = String (ModuleRes(STR_CONNECTION_TEST)); @@ -369,6 +372,7 @@ } OSQLMessageBox aMsg(this,sTitle,aMessage); aMsg.Execute(); + } } return 0L; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
