diff options
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index cd8347f707ef..74226435241b 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -2323,9 +2323,9 @@ KEYINPUT_CHECKTABLE_INSDEL: if (rSh.HasReadonlySel() && rKeyCode.GetFunction() == KeyFuncType::PASTE) { - auto xInfo(std::make_shared<weld::GenericDialogController>(GetFrameWeld(), "modules/swriter/ui/inforeadonlydialog.ui", "InfoReadonlyDialog")); - weld::DialogController::runAsync(xInfo, [](int) {}); - eKeyState = SwKeyState::End; + ScopedVclPtrInstance<MessageDialog>(this, "InfoReadonlyDialog", + "modules/swriter/ui/inforeadonlydialog.ui")->Execute(); + eKeyState = KS_End; } else if( m_rView.KeyInput( aKeyEvent ) ) { |