mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 09:36:15 +00:00
Changed: Fixed a bug with the log plugin causing crashes when the apply button was clicked for settings.
--HG-- branch : branch-mission-compiler-qt
This commit is contained in:
parent
1c37129071
commit
5be81c6487
2 changed files with 8 additions and 5 deletions
|
@ -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,11 +99,14 @@ 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");
|
||||||
CLogPlugin* lp = dynamic_cast<CLogPlugin*>(plugin);
|
|
||||||
if (lp)
|
if(spec)
|
||||||
{
|
{
|
||||||
lp->setDisplayers();
|
ExtensionSystem::IPlugin *plugin = spec->plugin();
|
||||||
|
CLogPlugin* lp = dynamic_cast<CLogPlugin*>(plugin);
|
||||||
|
if (lp)
|
||||||
|
lp->setDisplayers();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue