From kdevelop-bugs Sun Aug 29 20:13:52 2010 From: Andreas Pakulat Date: Sun, 29 Aug 2010 20:13:52 +0000 To: kdevelop-bugs Subject: [Bug 178445] only show project relevant kcm's in the project config Message-Id: <20100829201352.23C41632BE () immanuel ! kde ! org> X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=128311320928715 https://bugs.kde.org/show_bug.cgi?id=178445 --- Comment #5 from Andreas Pakulat 2010-08-29 22:13:51 --- commit d9b26d7228a826263dce4d1696e08e74eae297a3 Author: Andreas Pakulat Date: Wed Jul 22 14:15:56 2009 +0000 Properly unload toolviews when the plugin is unloaded CCBUG:178445 diff --git a/gitplugin.cpp b/gitplugin.cpp index 02fc821..17c8ee7 100644 --- a/gitplugin.cpp +++ b/gitplugin.cpp @@ -65,6 +65,12 @@ GitPlugin::~GitPlugin() } +void GitPlugin::unload() +{ + core()->uiController()->removeToolView( dvcsViewFactory() ); +} + + QString GitPlugin::name() const { return QLatin1String("Git"); diff --git a/gitplugin.h b/gitplugin.h index 1ab5a13..081a4f0 100644 --- a/gitplugin.h +++ b/gitplugin.h @@ -49,6 +49,8 @@ class GitPlugin: public KDevelop::DistributedVersionControlPlugin public: GitPlugin(QObject *parent, const QVariantList & args = QVariantList() ); ~GitPlugin(); + + virtual void unload(); QString name() const; -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ KDevelop-bugs mailing list KDevelop-bugs@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs