Commit d9b26d72 authored by Andreas Pakulat's avatar Andreas Pakulat
Browse files

Properly unload toolviews when the plugin is unloaded

CCBUG:178445
parent a04d6374
...@@ -65,6 +65,12 @@ GitPlugin::~GitPlugin() ...@@ -65,6 +65,12 @@ GitPlugin::~GitPlugin()
} }
void GitPlugin::unload()
{
core()->uiController()->removeToolView( dvcsViewFactory() );
}
QString GitPlugin::name() const QString GitPlugin::name() const
{ {
return QLatin1String("Git"); return QLatin1String("Git");
......
...@@ -49,6 +49,8 @@ class GitPlugin: public KDevelop::DistributedVersionControlPlugin ...@@ -49,6 +49,8 @@ class GitPlugin: public KDevelop::DistributedVersionControlPlugin
public: public:
GitPlugin(QObject *parent, const QVariantList & args = QVariantList() ); GitPlugin(QObject *parent, const QVariantList & args = QVariantList() );
~GitPlugin(); ~GitPlugin();
virtual void unload();
QString name() const; QString name() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment