Changed: Fixed a bug with the log plugin causing crashes when the apply button was clicked for settings.

--HG--
branch : branch-mission-compiler-qt
hg/feature/gsoc2012-fabien
sfb 14 years ago
parent 1c37129071
commit 5be81c6487

@ -103,7 +103,7 @@ namespace Plugin
QString CLogPlugin::name() const QString CLogPlugin::name() const
{ {
return "NeL Log"; return "LogPlugin";
} }
QString CLogPlugin::version() const QString CLogPlugin::version() const

@ -99,10 +99,13 @@ namespace Plugin
writeSettings(); writeSettings();
ExtensionSystem::IPluginManager *p = Core::ICore::instance()->pluginManager(); ExtensionSystem::IPluginManager *p = Core::ICore::instance()->pluginManager();
ExtensionSystem::IPlugin *plugin = p->pluginByName("LogPlugin")->plugin(); ExtensionSystem::IPluginSpec *spec = p->pluginByName("LogPlugin");
if(spec)
{
ExtensionSystem::IPlugin *plugin = spec->plugin();
CLogPlugin* lp = dynamic_cast<CLogPlugin*>(plugin); CLogPlugin* lp = dynamic_cast<CLogPlugin*>(plugin);
if (lp) if (lp)
{
lp->setDisplayers(); lp->setDisplayers();
} }
} }

Loading…
Cancel
Save