Skip to content
Permalink
Browse files

moved to the new Database menu

git-svn-id: http://svn.osgeo.org/qgis/trunk@14644 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler
brushtyler committed Nov 14, 2010
1 parent 8c1ddc1 commit 49365eb0692345a1b0be521fe6434e35a9ec8d4f
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/plugins/offline_editing/offline_editing_plugin.cpp
@@ -60,14 +60,14 @@ void QgsOfflineEditingPlugin::initGui()
connect( mActionConvertProject, SIGNAL( triggered() ), this, SLOT( convertProject() ) );
// Add the icon to the toolbar
mQGisIface->addToolBarIcon( mActionConvertProject );
mQGisIface->addPluginToMenu( tr( "&Offline Editing" ), mActionConvertProject );
mQGisIface->addPluginToDatabaseMenu( tr( "&Offline Editing" ), mActionConvertProject );
mActionConvertProject->setEnabled( false );

mActionSynchronize = new QAction( QIcon( ":/offline_editing/offline_editing_sync.png" ), tr( "Synchronize" ), this );
mActionSynchronize->setWhatsThis( tr( "Synchronize offline project with remote layers" ) );
connect( mActionSynchronize, SIGNAL( triggered() ), this, SLOT( synchronize() ) );
mQGisIface->addToolBarIcon( mActionSynchronize );
mQGisIface->addPluginToMenu( tr( "&Offline Editing" ), mActionSynchronize );
mQGisIface->addPluginToDatabaseMenu( tr( "&Offline Editing" ), mActionSynchronize );
mActionSynchronize->setEnabled( false );

mOfflineEditing = new QgsOfflineEditing( new QgsOfflineEditingProgressDialog( mQGisIface->mainWindow(), QgisGui::ModalDialogFlags ) );
@@ -117,9 +117,9 @@ void QgsOfflineEditingPlugin::unload()
disconnect( QgsProject::instance(), SIGNAL( writeProject( QDomDocument & ) ), this, SLOT( updateActions() ) );

// remove the GUI
mQGisIface->removePluginMenu( "&Offline Editing", mActionConvertProject );
mQGisIface->removePluginDatabaseMenu( "&Offline Editing", mActionConvertProject );
mQGisIface->removeToolBarIcon( mActionConvertProject );
mQGisIface->removePluginMenu( "&Offline Editing", mActionSynchronize );
mQGisIface->removePluginDatabaseMenu( "&Offline Editing", mActionSynchronize );
mQGisIface->removeToolBarIcon( mActionSynchronize );
delete mActionConvertProject;
delete mActionSynchronize;

0 comments on commit 49365eb

Please sign in to comment.
You can’t perform that action at this time.