Remove sheet builder action when unloading the plugin.

--HG--
branch : gsoc2014-dfighter
hg/feature/cdb-packed
dfighter1985 11 years ago
parent 828f31a2a4
commit 3fc289e7fa

@ -35,6 +35,18 @@
using namespace Plugin;
SheetBuilderPlugin::SheetBuilderPlugin()
{
}
SheetBuilderPlugin::~SheetBuilderPlugin()
{
Core::MenuManager *menuManager = Core::ICore::instance()->menuManager();
QAction *a = menuManager->action( "SheetBuilder" );
menuManager->unregisterAction( "SheetBuilder" );
delete a;
}
bool SheetBuilderPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
{
Q_UNUSED(errorString);

@ -36,6 +36,8 @@ class SheetBuilderPlugin : public QObject, public ExtensionSystem::IPlugin
Q_OBJECT
Q_INTERFACES(ExtensionSystem::IPlugin)
public:
SheetBuilderPlugin();
~SheetBuilderPlugin();
bool initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString);
void extensionsInitialized();
void setNelContext(NLMISC::INelContext *nelContext);

Loading…
Cancel
Save