@@ -1676,6 +1676,13 @@ void QgisApp::createActions()
1676
1676
mActionAddPgLayer = 0;
1677
1677
#endif
1678
1678
1679
+ #ifndef WITH_ARCGIS
1680
+ delete mActionAddAfsLayer;
1681
+ mActionAddAfsLayer = 0;
1682
+ delete mActionAddAmsLayer;
1683
+ mActionAddAmsLayer = 0;
1684
+ #endif
1685
+
1679
1686
#ifndef HAVE_ORACLE
1680
1687
delete mActionAddOracleLayer;
1681
1688
mActionAddOracleLayer = nullptr;
@@ -2126,6 +2133,7 @@ void QgisApp::createToolBars()
2126
2133
newLayerAction->setObjectName( "ActionNewLayer" );
2127
2134
connect( bt, SIGNAL( triggered( QAction * ) ), this, SLOT( toolButtonActionTriggered( QAction * ) ) );
2128
2135
2136
+ #ifdef WITH_ARCGIS
2129
2137
// map service tool button
2130
2138
bt = new QToolButton();
2131
2139
bt->setPopupMode( QToolButton::MenuButtonPopup );
@@ -2167,6 +2175,7 @@ void QgisApp::createToolBars()
2167
2175
mLayerToolBar->removeAction( mActionAddWfsLayer );
2168
2176
featureServiceAction->setObjectName( "ActionFeatureService" );
2169
2177
connect( bt, SIGNAL( triggered( QAction * ) ), this, SLOT( toolButtonActionTriggered( QAction * ) ) );
2178
+ #endif
2170
2179
2171
2180
// add db layer button
2172
2181
bt = new QToolButton();
@@ -2545,8 +2554,10 @@ void QgisApp::setTheme( const QString& theThemeName )
2545
2554
mActionAddWmsLayer->setIcon( QgsApplication::getThemeIcon( "/mActionAddWmsLayer.svg" ) );
2546
2555
mActionAddWcsLayer->setIcon( QgsApplication::getThemeIcon( "/mActionAddWcsLayer.svg" ) );
2547
2556
mActionAddWfsLayer->setIcon( QgsApplication::getThemeIcon( "/mActionAddWfsLayer.svg" ) );
2557
+ #ifdef WITH_ARCGIS
2548
2558
mActionAddAfsLayer->setIcon( QgsApplication::getThemeIcon( "/mActionAddAfsLayer.svg" ) );
2549
2559
mActionAddAmsLayer->setIcon( QgsApplication::getThemeIcon( "/mActionAddAmsLayer.svg" ) );
2560
+ #endif
2550
2561
mActionAddToOverview->setIcon( QgsApplication::getThemeIcon( "/mActionInOverview.svg" ) );
2551
2562
mActionAnnotation->setIcon( QgsApplication::getThemeIcon( "/mActionAnnotation.png" ) );
2552
2563
mActionFormAnnotation->setIcon( QgsApplication::getThemeIcon( "/mActionFormAnnotation.png" ) );
0 commit comments