diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-11-08 11:47:09 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-11-08 15:51:21 +0100 |
commit | 6c8a7fcb01beeedaa72b4a4c31d1b849000bad39 (patch) | |
tree | 3b4146f9318bebec191e0cf03ff96ecbbdf4f896 /sc/source/ui/attrdlg | |
parent | 48ab06d962e584091f8e2771bc9863ed886fa39f (diff) |
Resolves: tdf#128667 crash in csv import from paste
Change-Id: Id50d0a7e4f176ccf83292495cb229da492fbf381
Reviewed-on: https://gerrit.libreoffice.org/82287
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/attrdlg')
-rw-r--r-- | sc/source/ui/attrdlg/scdlgfact.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/attrdlg/scdlgfact.hxx | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx index 3c4b3ec9c92a..af0bcfdef27e 100644 --- a/sc/source/ui/attrdlg/scdlgfact.cxx +++ b/sc/source/ui/attrdlg/scdlgfact.cxx @@ -75,6 +75,11 @@ short AbstractScImportAsciiDlg_Impl::Execute() return m_xDlg->run(); } +bool AbstractScImportAsciiDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) +{ + return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn); +} + short AbstractScAutoFormatDlg_Impl::Execute() { return m_xDlg->run(); diff --git a/sc/source/ui/attrdlg/scdlgfact.hxx b/sc/source/ui/attrdlg/scdlgfact.hxx index d6790a7f40a6..60e5a6bc35d8 100644 --- a/sc/source/ui/attrdlg/scdlgfact.hxx +++ b/sc/source/ui/attrdlg/scdlgfact.hxx @@ -101,13 +101,14 @@ OString Class::GetScreenshotId() const \ class AbstractScImportAsciiDlg_Impl : public AbstractScImportAsciiDlg { - std::unique_ptr<ScImportAsciiDlg> m_xDlg; + std::shared_ptr<ScImportAsciiDlg> m_xDlg; public: explicit AbstractScImportAsciiDlg_Impl(std::unique_ptr<ScImportAsciiDlg> p) : m_xDlg(std::move(p)) { } virtual short Execute() override; + virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override; virtual void GetOptions( ScAsciiOptions& rOpt ) override; virtual void SaveParameters() override; |