[Libreoffice-commits] core.git: sd/source
Tamás Zolnai (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jan 29 09:16:10 UTC 2021
sd/source/ui/sidebar/SlideBackground.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 6c30a605b1d59d31b9a46b6d33ac56a46621dec4
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Thu Jan 28 12:20:29 2021 +0100
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Fri Jan 29 10:15:22 2021 +0100
tdf#139965: Broken master slide list after switching mode.
Let's update the master slide combobox by context change.
populateMasterSlideDropdown() will fill the list when we
switch to normal view. The same method is called when the
sidebar created in normal view.
mpMasterSlide->Clear() will clean the list when we switch
to master view. The same happens, when the sidebar is created
in a master view context (the list is empty).
Change-Id: I322619e409a5352ddcd59a249dd0c874054c1e4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110075
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
(cherry picked from commit 2be52f741e283b5f172ae536f0e99ce0f38df9e1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110114
Tested-by: Jenkins
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index e92c936c92a8..17c85e21540d 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -301,6 +301,7 @@ void SlideBackground::HandleContextChange(
mxCloseMaster->show();
mxEditMaster->hide();
mxMasterSlide->set_sensitive(false);
+ mxMasterSlide->clear();
mxDspMasterBackground->set_sensitive(false);
mxDspMasterObjects->set_sensitive(false);
mxFillStyle->hide();
@@ -312,6 +313,7 @@ void SlideBackground::HandleContextChange(
mxCloseMaster->hide();
mxEditMaster->hide();
mxMasterSlide->set_sensitive(false);
+ mxMasterSlide->clear();
mxDspMasterBackground->set_sensitive(false);
mxDspMasterObjects->set_sensitive(false);
mxFillStyle->hide();
@@ -323,6 +325,7 @@ void SlideBackground::HandleContextChange(
mxCloseMaster->hide();
mxEditMaster->show();
mxMasterSlide->set_sensitive(true);
+ populateMasterSlideDropdown();
mxDspMasterBackground->set_sensitive(true);
mxDspMasterObjects->set_sensitive(true);
mxFillStyle->show();
More information about the Libreoffice-commits
mailing list