Skip to content

Commit

Permalink
Fix invalid connection in offline editing plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 16, 2018
1 parent 2c511d2 commit 063c1a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/offline_editing/offline_editing_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void QgsOfflineEditingPlugin::initGui()
connect( mOfflineEditing, &QgsOfflineEditing::warning, mQGisIface->messageBar(), &QgsMessageBar::pushWarning );

connect( mQGisIface, &QgisInterface::projectRead, this, &QgsOfflineEditingPlugin::updateActions );
connect( mQGisIface, &QgisInterface::newProject, this, &QgsOfflineEditingPlugin::updateActions );
connect( mQGisIface, &QgisInterface::newProjectCreated, this, &QgsOfflineEditingPlugin::updateActions );
connect( QgsProject::instance(), &QgsProject::writeProject, this, &QgsOfflineEditingPlugin::updateActions );
connect( QgsProject::instance(), &QgsProject::layerWasAdded, this, &QgsOfflineEditingPlugin::updateActions );
connect( QgsProject::instance(), static_cast < void ( QgsProject::* )( const QString & ) >( &QgsProject::layerWillBeRemoved ), this, &QgsOfflineEditingPlugin::updateActions );
Expand Down Expand Up @@ -125,7 +125,7 @@ void QgsOfflineEditingPlugin::synchronize()
void QgsOfflineEditingPlugin::unload()
{
disconnect( mQGisIface, &QgisInterface::projectRead, this, &QgsOfflineEditingPlugin::updateActions );
disconnect( mQGisIface, &QgisInterface::newProject, this, &QgsOfflineEditingPlugin::updateActions );
disconnect( mQGisIface, &QgisInterface::newProjectCreated, this, &QgsOfflineEditingPlugin::updateActions );
disconnect( QgsProject::instance(), &QgsProject::writeProject, this, &QgsOfflineEditingPlugin::updateActions );

// remove the GUI
Expand Down

0 comments on commit 063c1a4

Please sign in to comment.