cid#1401342 silence Uncaught exception
Change-Id: I991b01c97ce4bae87ff7244fc9ef507dde2c3d63 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188903 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
#include <com/sun/star/ucb/InteractiveAugmentedIOException.hpp>
|
||||
#include "fpinteraction.hxx"
|
||||
#include <osl/process.h>
|
||||
#include <o3tl/deleter.hxx>
|
||||
#include <o3tl/string_view.hxx>
|
||||
|
||||
#include <officecfg/Office/Common.hxx>
|
||||
@@ -450,7 +451,7 @@ SvtFileDialog::SvtFileDialog(weld::Window* pParent, PickerFlags nStyle)
|
||||
m_xImpl->m_xEdFileName->grab_focus();
|
||||
}
|
||||
|
||||
SvtFileDialog::~SvtFileDialog()
|
||||
void SvtFileDialog::ImplDestroy()
|
||||
{
|
||||
if (!m_xImpl->m_aIniKey.isEmpty())
|
||||
{
|
||||
@@ -489,6 +490,11 @@ SvtFileDialog::~SvtFileDialog()
|
||||
batch->commit();
|
||||
}
|
||||
|
||||
SvtFileDialog::~SvtFileDialog()
|
||||
{
|
||||
suppress_fun_call_w_exception(ImplDestroy());
|
||||
}
|
||||
|
||||
IMPL_LINK_NOARG(SvtFileDialog, NewFolderHdl_Impl, weld::Button&, void)
|
||||
{
|
||||
m_xFileView->EndInplaceEditing();
|
||||
|
||||
@@ -147,6 +147,8 @@ private:
|
||||
void EnableControl(weld::Widget* pControl, bool bEnable);
|
||||
virtual bool PrepareExecute() override;
|
||||
|
||||
void ImplDestroy();
|
||||
|
||||
public:
|
||||
SvtFileDialog( weld::Window* pParent, PickerFlags nBits );
|
||||
virtual ~SvtFileDialog() override;
|
||||
|
||||
Reference in New Issue
Block a user