Kaydet (Commit) c4dabd8e authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS dba31a (1.31.6); FILE MERGED

2008/07/07 12:24:25 oj 1.31.6.1: #i85664# show error when opening a doc
üst 2a455765
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: linkeddocuments.cxx,v $ * $RCSfile: linkeddocuments.cxx,v $
* $Revision: 1.31 $ * $Revision: 1.32 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -474,8 +474,7 @@ namespace dbaui ...@@ -474,8 +474,7 @@ namespace dbaui
{ {
Any aAny = ::cppu::getCaughtException(); Any aAny = ::cppu::getCaughtException();
com::sun::star::sdbc::SQLException a; com::sun::star::sdbc::SQLException a;
if ((aAny >>= a) && if ( !(aAny >>= a) || (a.ErrorCode != dbtools::ParameterInteractionCancelled) )
(a.ErrorCode != dbtools::ParameterInteractionCancelled))
{ {
com::sun::star::sdbc::SQLException aSQLException; com::sun::star::sdbc::SQLException aSQLException;
aSQLException.Message = e.Message; aSQLException.Message = e.Message;
...@@ -488,10 +487,6 @@ namespace dbaui ...@@ -488,10 +487,6 @@ namespace dbaui
String sMessage = String(ModuleRes(STR_COULDNOTOPEN_LINKEDDOC)); String sMessage = String(ModuleRes(STR_COULDNOTOPEN_LINKEDDOC));
sMessage.SearchAndReplaceAscii("$file$",_rLinkName); sMessage.SearchAndReplaceAscii("$file$",_rLinkName);
aInfo.prepend(sMessage); aInfo.prepend(sMessage);
// sMessage.SearchAndReplaceAscii("$file$",_rLinkName);
// ErrorBox aError(m_pDialogParent, WB_OK, sMessage);
// aError.Execute();
} }
} }
if (aInfo.isValid()) if (aInfo.isValid())
......
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