diff options
author | Jan Holesovsky <kendy@collabora.com> | 2016-03-24 17:05:24 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-04-05 06:41:53 +0000 |
commit | 9baa30bcabb7259c3497db6fa774de2a588ae017 (patch) | |
tree | 119459df0d00dd758a96dcc6661d5a7d9d0993dd /svtools | |
parent | c326d9bb95b48c679bd3af4d044569d3ed47137b (diff) |
Disable gdrive/OneDrive/Alfresco cloud based on whether they are compiled in.
Change-Id: I81bde1f85489ede4b8c826389146ad0990d6abb6
Reviewed-on: https://gerrit.libreoffice.org/23496
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/dialogs/PlaceEditDialog.cxx | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/svtools/source/dialogs/PlaceEditDialog.cxx b/svtools/source/dialogs/PlaceEditDialog.cxx index b062b934e375..9d0a08e92a4a 100644 --- a/svtools/source/dialogs/PlaceEditDialog.cxx +++ b/svtools/source/dialogs/PlaceEditDialog.cxx @@ -173,19 +173,21 @@ void PlaceEditDialog::InitDetails( ) for ( sal_Int32 i = 0; i < aTypesUrlsList.getLength( ) && aTypesNamesList.getLength( ); ++i ) { OUString sUrl = aTypesUrlsList[i]; + + if ((sUrl == GDRIVE_BASE_URL && bSkipGDrive) || + (sUrl.startsWith( ALFRESCO_CLOUD_BASE_URL) && bSkipAlfresco) || + (sUrl == ONEDRIVE_BASE_URL && bSkipOneDrive)) + { + // this service is not supported + continue; + } + nPos = m_pLBServerType->InsertEntry( aTypesNamesList[i], nPos ); std::shared_ptr<DetailsContainer> xCmisDetails(std::make_shared<CmisDetailsContainer>(this, sUrl)); xCmisDetails->setChangeHdl( LINK( this, PlaceEditDialog, EditHdl ) ); m_aDetailsContainers.push_back(xCmisDetails); - if ( ( sUrl == GDRIVE_BASE_URL && bSkipGDrive ) || - ( sUrl.startsWith( ALFRESCO_CLOUD_BASE_URL ) && bSkipAlfresco ) || - ( sUrl == ONEDRIVE_BASE_URL && bSkipOneDrive ) ) - { - xCmisDetails->setActive( false ); - } - nPos++; } |