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");
......
...@@ -50,6 +50,8 @@ public: ...@@ -50,6 +50,8 @@ 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;
bool isVersionControlled(const KUrl &path); bool isVersionControlled(const KUrl &path);
......
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