Skip to content

Commit 04e1e96

Browse files
committedJun 3, 2016
Fix addDbLayerAction insertion point when arcgis provider is enabled
1 parent 8f15877 commit 04e1e96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/app/qgisapp.cpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2175,6 +2175,8 @@ void QgisApp::createToolBars()
21752175
mLayerToolBar->removeAction( mActionAddWfsLayer );
21762176
featureServiceAction->setObjectName( "ActionFeatureService" );
21772177
connect( bt, SIGNAL( triggered( QAction * ) ), this, SLOT( toolButtonActionTriggered( QAction * ) ) );
2178+
#else
2179+
QAction* mapServiceAction = mActionAddWmsLayer;
21782180
#endif
21792181

21802182
// add db layer button
@@ -2206,7 +2208,7 @@ void QgisApp::createToolBars()
22062208
}
22072209
if ( defAddDbLayerAction )
22082210
bt->setDefaultAction( defAddDbLayerAction );
2209-
QAction* addDbLayerAction = mLayerToolBar->insertWidget( mActionAddWmsLayer, bt );
2211+
QAction* addDbLayerAction = mLayerToolBar->insertWidget( mapServiceAction, bt );
22102212
addDbLayerAction->setObjectName( "ActionAddDbLayer" );
22112213
connect( bt, SIGNAL( triggered( QAction * ) ), this, SLOT( toolButtonActionTriggered( QAction * ) ) );
22122214

3 commit comments

Comments
 (3)

nirvn commented on Jun 3, 2016

@nirvn
Contributor

@manisandro thanks.

nirvn commented on Jun 3, 2016

@nirvn
Contributor

@manisandro , BTW, @nyalldawson recently renamed [ delete ] buttons to [ remove ] recently, in a bid to avoid confusion as to what the button does. Might be worth updating your dialogs too. Cheers.

manisandro commented on Jun 3, 2016

@manisandro
MemberAuthor

@nirvn Thanks for the heads up, done in 6a46e71

Please sign in to comment.