summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2018-02-21 15:21:43 +0530
committerJan Holesovsky <kendy@collabora.com>2018-02-21 17:01:13 +0100
commitc565a1a36dc6e75744df284edbb36ffd09edc42b (patch)
tree570763cc6610435868181c3718bbb12cd3106c51 /sw/source
parentf2d3192e8a4ae743fcaab27ab6d829d57ae8fb60 (diff)
lokdialog: Convert InfoReadonlyDialog -> execute async
Change-Id: I3f2e7fb676911570276f66d000c91ca3ef2bdeb0 Reviewed-on: https://gerrit.libreoffice.org/50096 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 024c3aabfc88..f45ce68a9024 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -2498,8 +2498,9 @@ KEYINPUT_CHECKTABLE_INSDEL:
}
else
{
- ScopedVclPtrInstance<MessageDialog>(this, "InfoReadonlyDialog",
- "modules/swriter/ui/inforeadonlydialog.ui")->Execute();
+ VclPtr<MessageDialog> pDlg = VclPtr<MessageDialog>::Create(this, "InfoReadonlyDialog",
+ "modules/swriter/ui/inforeadonlydialog.ui");
+ pDlg->StartExecuteAsync([=](int){});
eKeyState = KS_End;
}
break;