mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-24 17:58:45 +00:00
Changed: Fixed a bug with the log plugin causing crashes when the apply button was clicked for settings.
This commit is contained in:
parent
890468f023
commit
2029cdbac9
2 changed files with 8 additions and 5 deletions
|
@ -103,7 +103,7 @@ namespace Plugin
|
|||
|
||||
QString CLogPlugin::name() const
|
||||
{
|
||||
return "NeL Log";
|
||||
return "LogPlugin";
|
||||
}
|
||||
|
||||
QString CLogPlugin::version() const
|
||||
|
|
|
@ -99,10 +99,13 @@ namespace Plugin
|
|||
|
||||
writeSettings();
|
||||
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);
|
||||
if (lp)
|
||||
{
|
||||
lp->setDisplayers();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue