From 03452acf12891cc8746f52f761e872db27498111 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Thu, 25 Jul 2013 11:34:58 +0200 Subject: [PATCH] smll changes --- src/core/plugins/plugincontainer.cpp | 4 ++-- .../frontends/freedesktop/freedesktopnotificationfrontend.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/plugins/plugincontainer.cpp b/src/core/plugins/plugincontainer.cpp index 83e0008..2d2a245 100644 --- a/src/core/plugins/plugincontainer.cpp +++ b/src/core/plugins/plugincontainer.cpp @@ -142,7 +142,7 @@ void PluginContainer::updatePluginCache(){ qDebug() << "Failed loading plugin: " << filepath << loader.errorString(); continue; } - SnorePlugin *sp = dynamic_cast(plugin); + SnorePlugin *sp = qobject_cast(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"; } } diff --git a/src/plugins/frontends/freedesktop/freedesktopnotificationfrontend.cpp b/src/plugins/frontends/freedesktop/freedesktopnotificationfrontend.cpp index 013d270..4afae77 100644 --- a/src/plugins/frontends/freedesktop/freedesktopnotificationfrontend.cpp +++ b/src/plugins/frontends/freedesktop/freedesktopnotificationfrontend.cpp @@ -129,6 +129,7 @@ QStringList FreedesktopFrontend::GetCapabilities() { return QStringList() << "body" + << "urgency" // << "body-hyperlinks" << "body-markup" << "icon-static"