diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2019-07-02 00:01:01 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-07-15 09:13:07 +0200 |
commit | f160dbfc92b89aff5afc4c87692e52bd50e3f09e (patch) | |
tree | 52814c1fac7dee2c7885919ba2c6043d2af72664 /sd | |
parent | 7ccc93d947ba3333cba6d99a03ed2d0c27b1983a (diff) |
tdf#126180: EndTextEdit on all views before delete/cut slide
This also reworks the fixes tdf#125824 and tdf#111522 to use EndTextEdit
instead of blocking the undoing
Change-Id: I73c2289a9d950465f020f684e9e736148380f5c5
Reviewed-on: https://gerrit.libreoffice.org/74989
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit e6c7a018a0cfee395ce2886d41c908a2447ef5cc)
Reviewed-on: https://gerrit.libreoffice.org/75027
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
(cherry picked from commit 1aa93766ee3994af9975e96e8ea60e02078de2d8)
Reviewed-on: https://gerrit.libreoffice.org/75031
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsSlotManager.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx index 0a8f11f58271..1dcf5fc6bdcd 100644 --- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx @@ -234,6 +234,7 @@ void SlotManager::FuTemporary (SfxRequest& rRequest) // (DEL -> accelerator -> SID_CUT). if (mrSlideSorter.GetModel().GetPageCount() > 1) { + mrSlideSorter.GetView().EndTextEditAllViews(); mrSlideSorter.GetController().GetSelectionManager()->DeleteSelectedPages(); } @@ -371,6 +372,7 @@ void SlotManager::FuSupport (SfxRequest& rRequest) case SID_CUT: case SID_COPY: case SID_DELETE: + mrSlideSorter.GetView().EndTextEditAllViews(); mrSlideSorter.GetController().GetClipboard().HandleSlotCall(rRequest); break; |