Skip to content

Commit

Permalink
Disable watchDog when plugin was loaded successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Mar 17, 2016
1 parent adc811c commit cc650f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgspluginregistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ void QgsPluginRegistry::loadPythonPlugin( const QString& packageName )
// add to settings
settings.setValue( "/PythonPlugins/" + packageName, true );
QgsMessageLog::logMessage( QObject::tr( "Loaded %1 (package: %2)" ).arg( pluginName, packageName ), QObject::tr( "Plugins" ), QgsMessageLog::INFO );

settings.remove( "/PythonPlugins/watchDog/" + packageName );
}
}

Expand Down Expand Up @@ -370,6 +372,8 @@ void QgsPluginRegistry::loadCppPlugin( const QString& theFullPathName )
QgsDebugMsg( QString( "plugin parent already set" ) );
}
}

settings.remove( "/Plugins/watchDog/" + baseName );
}
else
{
Expand Down

0 comments on commit cc650f9

Please sign in to comment.