sw/source/uibase/docvw/edtwin.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit b6fb2719170d1d96fc60305d73663ddd81d887e5 Author: Michael Stahl <michael.st...@cib.de> AuthorDate: Thu Mar 26 15:53:52 2020 +0100 Commit: Michael Stahl <michael.st...@cib.de> CommitDate: Thu Mar 26 16:57:43 2020 +0100 sw: SwEditWin: for CUT of a read-only selection, pop up info dialog ... as is already done for PASTE, so the user doesn't wonder why it doesn't work. Change-Id: I4c967fdf46bc76f0930d665cf84ca27ef92c00d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91142 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@cib.de> diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index ff203c6d75c4..40595b0a7e4b 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -2241,7 +2241,9 @@ KEYINPUT_CHECKTABLE_INSDEL: if( !m_aInBuffer.isEmpty() && ( !bNormalChar || bIsDocReadOnly )) FlushInBuffer(); - if (rSh.HasReadonlySel() && rKeyCode.GetFunction() == KeyFuncType::PASTE) + if (rSh.HasReadonlySel() + && ( rKeyCode.GetFunction() == KeyFuncType::PASTE + || rKeyCode.GetFunction() == KeyFuncType::CUT)) { auto xInfo(std::make_shared<weld::GenericDialogController>(GetFrameWeld(), "modules/swriter/ui/inforeadonlydialog.ui", "InfoReadonlyDialog")); weld::DialogController::runAsync(xInfo, [](int) {}); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits