summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2016-03-24 17:05:24 +0100
committerJan Holesovsky <kendy@collabora.com>2016-03-24 17:06:37 +0100
commitd2c1bc036de4b24a0f4602fbc7fd978fa8d603eb (patch)
treea04ad3debf930f65bd83943c079d419c061590a0 /svtools
parentccabf4a408a246a931011732a5711e3b5334b17f (diff)
Disable gdrive/OneDrive/Alfresco cloud based on whether they are compiled in.
Change-Id: I81bde1f85489ede4b8c826389146ad0990d6abb6
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/dialogs/PlaceEditDialog.cxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/svtools/source/dialogs/PlaceEditDialog.cxx b/svtools/source/dialogs/PlaceEditDialog.cxx
index ee96ad132153..137cec3c8448 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++;
}