Ensure new GPX Layer action comes before Remove Layer action on Manage Layers toolbar

This commit is contained in:
Larry Shaffer 2013-07-12 15:34:48 -06:00
parent a87f4d1e57
commit 56055cef5a

View File

@ -95,7 +95,7 @@ void QgsGPSPlugin::initGui()
connect( mQActionPointer, SIGNAL( triggered() ), this, SLOT( run() ) ); connect( mQActionPointer, SIGNAL( triggered() ), this, SLOT( run() ) );
connect( mCreateGPXAction, SIGNAL( triggered() ), this, SLOT( createGPX() ) ); connect( mCreateGPXAction, SIGNAL( triggered() ), this, SLOT( createGPX() ) );
mQGisInterface->layerToolBar()->addAction( mCreateGPXAction ); mQGisInterface->layerToolBar()->insertAction( mQGisInterface->actionRemoveLayer(), mCreateGPXAction );
mQGisInterface->newLayerMenu()->addAction( mCreateGPXAction ); mQGisInterface->newLayerMenu()->addAction( mCreateGPXAction );
mQGisInterface->addPluginToVectorMenu( tr( "&GPS" ), mQActionPointer ); mQGisInterface->addPluginToVectorMenu( tr( "&GPS" ), mQActionPointer );
mQGisInterface->addVectorToolBarIcon( mQActionPointer ); mQGisInterface->addVectorToolBarIcon( mQActionPointer );