Kaydet (Commit) 5e4dc857 authored tarafından Michael Stahl's avatar Michael Stahl

svx: ExternalToolEdit: don't terminate if SystemShellExecute throws

Change-Id: Ia527a2c9467e2ab097cf688164f4176a52fa1d36
üst c8ae30a7
...@@ -87,9 +87,17 @@ public: ...@@ -87,9 +87,17 @@ public:
void ExternalToolEditThread::execute() void ExternalToolEditThread::execute()
{ {
Reference<XSystemShellExecute> xSystemShellExecute( try
SystemShellExecute::create( ::comphelper::getProcessComponentContext() ) ); {
xSystemShellExecute->execute(m_aFileName, OUString(), SystemShellExecuteFlags::URIS_ONLY); Reference<XSystemShellExecute> const xSystemShellExecute(
SystemShellExecute::create( ::comphelper::getProcessComponentContext()));
xSystemShellExecute->execute(m_aFileName, OUString(),
SystemShellExecuteFlags::URIS_ONLY);
}
catch (uno::Exception const& e)
{
SAL_WARN("svx", "ExternalToolEditThread: exception: " << e.Message);
}
} }
void ExternalToolEdit::Edit(GraphicObject const*const pGraphicObject) void ExternalToolEdit::Edit(GraphicObject const*const pGraphicObject)
......
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