diff options
-rw-r--r-- | sd/source/ui/sidebar/SlideBackground.cxx | 16 |
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() |