Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disable watchDog when plugin was loaded successfully
  • 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
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.