diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2018-03-01 20:15:58 +0530 |
---|---|---|
committer | pranavk <pranavk@collabora.co.uk> | 2018-03-09 05:43:44 +0100 |
commit | 0b573eac85b3100eb8d40dcaf25c510f50cfd62f (patch) | |
tree | 650b9e43b041696f9d4e5f043623a445e453817e /sw/source | |
parent | b48dc80c770a3ce3296caed24987d2e451a6278c (diff) |
lokdialog: run async for weld dialogs
Change-Id: Ieb06beada435bc47a39295acb5ea2dcef10ca454
Reviewed-on: https://gerrit.libreoffice.org/50874
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 8c33ce4e5ba3..a6334cd57e60 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -2474,9 +2474,8 @@ KEYINPUT_CHECKTABLE_INSDEL: } else { - std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder(GetFrameWeld(), "modules/swriter/ui/inforeadonlydialog.ui")); - std::unique_ptr<weld::MessageDialog> xInfo(xBuilder->weld_message_dialog("InfoReadonlyDialog")); - xInfo->run(); + auto xInfo(std::make_shared<weld::GenericDialogController>(GetFrameWeld(), "modules/swriter/ui/inforeadonlydialog.ui", "InfoReadonlyDialog")); + weld::DialogController::runAsync(xInfo, [](int) {}); eKeyState = SwKeyState::End; } break; |