Skip to content

Commit

Permalink
moved to the new Database menu
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14644 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Nov 14, 2010
1 parent 726dd1d commit e0c065d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/offline_editing/offline_editing_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e0c065d

Please sign in to comment.