Skip to content
Permalink
Browse files

Fix invalid connection in offline editing plugin

  • Loading branch information
nyalldawson committed Jan 16, 2018
1 parent 2c511d2 commit 063c1a4941079ecc9e5cfea0afe22b8710d2de68
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/plugins/offline_editing/offline_editing_plugin.cpp
@@ -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 );
@@ -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

0 comments on commit 063c1a4

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