smll changes

This commit is contained in:
Patrick von Reth 2013-07-25 11:34:58 +02:00
parent 87ed91c432
commit 03452acf12
2 changed files with 3 additions and 2 deletions

View File

@ -142,7 +142,7 @@ void PluginContainer::updatePluginCache(){
qDebug() << "Failed loading plugin: " << filepath << loader.errorString();
continue;
}
SnorePlugin *sp = dynamic_cast<SnorePlugin*>(plugin);
SnorePlugin *sp = qobject_cast<SnorePlugin*>(plugin);
if(sp == NULL){
qDebug() << "Error:" << fileName << " is not a Snore plugin" ;
plugin->deleteLater();
@ -150,7 +150,7 @@ void PluginContainer::updatePluginCache(){
}
PluginContainer *info = new PluginContainer( SnoreCore::pluginDir().relativeFilePath(filepath),sp->name(),PluginContainer::typeFromString(type));
s_pluginCache.insert(info->name(),info);
delete sp;
sp->deleteLater();
qDebug() << "added" << info->name() << "to cache";
}
}

View File

@ -129,6 +129,7 @@ QStringList FreedesktopFrontend::GetCapabilities()
{
return QStringList()
<< "body"
<< "urgency"
// << "body-hyperlinks"
<< "body-markup"
<< "icon-static"