summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-11-08 14:01:19 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2021-12-29 12:01:01 +0100
commit27c815286befeb038a1b8463ba5bd45d3def3305 (patch)
treed38d5f4a78708f5b14587ba446c57a3620ce8584 /sd
parent3365e860d44b3396a5c1dd10e3f8db9c5da0ce02 (diff)
lok: hide useless insert image button in sidebar
do this also in draw, not only in impress Change-Id: Iaaf2349cfb98b801957b71bd4504f0e9efbfba4e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124840 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124902 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127669 Tested-by: Jenkins
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index 8ae9d0a9b8aa..89c16e0d6fc2 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -326,14 +326,6 @@ void SlideBackground::HandleContextChange(
mxInsertImage->show();
}
- // The Insert Image button in the sidebar issues .uno:SelectBackground,
- // which when invoked without arguments will open the file-open-dialog
- // to prompt the user to select a file. This is useless in LOOL.
- // Hide for now so the user will only be able to use the menu to insert
- // background image, which prompts the user for file selection in the browser.
- if (comphelper::LibreOfficeKit::isActive())
- mxInsertImage->hide();
-
// Need to do a relayouting, otherwise the panel size is not updated after show / hide controls
if (m_pPanel)
m_pPanel->TriggerDeckLayouting();
@@ -357,6 +349,14 @@ void SlideBackground::HandleContextChange(
mxBackgroundLabel->hide();
}
}
+
+ // The Insert Image button in the sidebar issues .uno:SelectBackground,
+ // which when invoked without arguments will open the file-open-dialog
+ // to prompt the user to select a file. This is useless in LOOL.
+ // Hide for now so the user will only be able to use the menu to insert
+ // background image, which prompts the user for file selection in the browser.
+ if (comphelper::LibreOfficeKit::isActive())
+ mxInsertImage->hide();
}
void SlideBackground::Update()