diff options
author | Jan Holesovsky <kendy@suse.cz> | 2013-02-07 22:46:05 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-02-08 12:02:37 +0000 |
commit | d59345634ab0af120ae5ba11a46a60832ba1ec0d (patch) | |
tree | 6ee0c3d1c0ef50d1b58aef89cf393099fb3da278 /sd/source/ui/remotecontrol | |
parent | 1be74e0eebad58ebd9d20e6cf3f6c8dd6e4fce9a (diff) |
sdremote: Disable Impress Remote in the menu also when not allowed in Options.
Conflicts:
sd/source/ui/view/drviews7.cxx
Change-Id: Ida8a3847a54c5415e1802a6688e110202bac35c1
Diffstat (limited to 'sd/source/ui/remotecontrol')
-rw-r--r-- | sd/source/ui/remotecontrol/Server.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/ui/remotecontrol/Server.cxx b/sd/source/ui/remotecontrol/Server.cxx index 1ebd92b6c2c7..76b4dd7c1562 100644 --- a/sd/source/ui/remotecontrol/Server.cxx +++ b/sd/source/ui/remotecontrol/Server.cxx @@ -10,8 +10,8 @@ #include <algorithm> #include <vector> -#include "officecfg/Office/Common.hxx" -#include "officecfg/Office/Impress.hxx" +#include <officecfg/Office/Common.hxx> +#include <officecfg/Office/Impress.hxx> #include <com/sun/star/container/XNameAccess.hpp> #include <com/sun/star/container/XNameContainer.hpp> @@ -310,12 +310,11 @@ void SdDLL::RegisterRemotes() // Disable unless in experimental mode for now SAL_INFO( "sdremote", "SdDLL::RegisterRemotes called" ); uno::Reference< uno::XComponentContext > xContext = comphelper::getProcessComponentContext(); - if (!xContext.is() || !officecfg::Office::Impress::Misc::Start::EnableSdremote::get(xContext)) + if ( xContext.is() && !officecfg::Office::Impress::Misc::Start::EnableSdremote::get( xContext ) ) return; sd::RemoteServer::setup(); sd::DiscoveryService::setup(); - } bool RemoteServer::isBluetoothDiscoverable() |