[Libreoffice-commits] core.git: sw/source
Michael Stahl (via logerrit)
logerrit at kemper.freedesktop.org
Thu Mar 26 15:58:29 UTC 2020
sw/source/uibase/docvw/edtwin.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit b6fb2719170d1d96fc60305d73663ddd81d887e5
Author: Michael Stahl <Michael.Stahl at cib.de>
AuthorDate: Thu Mar 26 15:53:52 2020 +0100
Commit: Michael Stahl <michael.stahl at 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.stahl at 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) {});
More information about the Libreoffice-commits
mailing list