Skip to content

Commit

Permalink
Ensure Add SQL Anywhere Layer action comes before Add WMS Layer actio…
Browse files Browse the repository at this point in the history
…n on Manage Layers toolbar
  • Loading branch information
dakcarto committed Jul 12, 2013
1 parent f24da3e commit 113a64b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugins/sqlanywhere/sqlanywhere.cpp
Expand Up @@ -84,10 +84,9 @@ void SqlAnywhere::initGui()
connect( mActionAddSqlAnywhereLayer, SIGNAL( triggered() ), this, SLOT( addSqlAnywhereLayer() ) );

// Add the icon to the new layers toolbar
mQGisIface->layerToolBar()->addAction( mActionAddSqlAnywhereLayer );

mQGisIface->layerToolBar()->insertAction( mQGisIface->actionAddWmsLayer(), mActionAddSqlAnywhereLayer );
// Also add to Layer menu
mQGisIface->insertAddLayerAction( mActionAddSqlAnywhereLayer );
mQGisIface->layerMenu()->insertAction( mQGisIface->actionAddWmsLayer(), mActionAddSqlAnywhereLayer );
}

//method defined in interface
Expand Down

0 comments on commit 113a64b

Please sign in to comment.