diff options
author | Andras Timar <andras.timar@collabora.com> | 2019-03-30 17:24:08 +0100 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-03-31 20:09:10 +0200 |
commit | 1d35b89e7581e12024769d19bfb6d6eb2c3274b8 (patch) | |
tree | af7f0a090361f6efc67cfc0d9ff5ea982d8bb147 | |
parent | 5e30823e8a25066aa7bbaa801583dbfa7db55a72 (diff) |
tdf#124362 hide Addressbook button in Online
Change-Id: If066c4440c7add08836fa3ebb569ffc36969072e
Reviewed-on: https://gerrit.libreoffice.org/69966
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r-- | cui/source/dialogs/hlmailtp.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cui/source/dialogs/hlmailtp.cxx b/cui/source/dialogs/hlmailtp.cxx index 89809a3b394a..dda7b82b4565 100644 --- a/cui/source/dialogs/hlmailtp.cxx +++ b/cui/source/dialogs/hlmailtp.cxx @@ -27,6 +27,8 @@ #include <hlmailtp.hxx> #include <bitmaps.hlst> +#include <comphelper/lok.hxx> + using namespace ::com::sun::star; /************************************************************************* @@ -59,7 +61,8 @@ SvxHyperlinkMailTp::SvxHyperlinkMailTp ( vcl::Window *pParent, IconChoiceDialog* m_pBtAdrBook->SetClickHdl ( LINK ( this, SvxHyperlinkMailTp, ClickAdrBookHdl_Impl ) ); m_pCbbReceiver->SetModifyHdl ( LINK ( this, SvxHyperlinkMailTp, ModifiedReceiverHdl_Impl) ); - if ( !SvtModuleOptions().IsModuleInstalled( SvtModuleOptions::EModule::DATABASE ) ) + if ( !SvtModuleOptions().IsModuleInstalled( SvtModuleOptions::EModule::DATABASE ) || + comphelper::LibreOfficeKit::isActive() ) m_pBtAdrBook->Hide(); } |