Kaydet (Commit) bb93b038 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

CMIS: display errors when clicking checkout button

Change-Id: I38d5cb95e1c45e1c57b11ec81523d4cca7568d34
üst 1008e946
......@@ -2570,11 +2570,9 @@ void SAL_CALL SfxBaseModel::checkOut( ) throw ( uno::RuntimeException )
// Reload the CMIS properties
loadCmisProperties( );
}
catch (const ucb::ContentCreationException &)
{
}
catch (const ucb::CommandAbortedException &)
catch ( const uno::Exception & e )
{
throw uno::RuntimeException( e.Message, e.Context );
}
}
}
......
......@@ -72,6 +72,7 @@
#include <toolkit/helper/convert.hxx>
#include <framework/titlehelper.hxx>
#include <comphelper/processfactory.hxx>
#include <vcl/msgbox.hxx>
#include <boost/unordered_map.hpp>
......@@ -1483,9 +1484,11 @@ IMPL_LINK( SfxBaseController, CheckOutHandler, PushButton*, pBtn )
SfxViewFrame* pViewFrame = m_pData->m_pViewShell->GetFrame();
pViewFrame->RemoveInfoBar( pInfoBar );
}
catch ( const uno::RuntimeException& )
catch ( const uno::RuntimeException& e )
{
// TODO Handle the problem in some way?
ErrorBox* pErrorBox = new ErrorBox( &m_pData->m_pViewShell->GetFrame()->GetWindow(), WB_OK, e.Message );
pErrorBox->Execute( );
delete pErrorBox;
}
}
return 0;
......
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