diff --git a/src/core/snorenotificationinstance.cpp b/src/core/snorenotificationinstance.cpp
index 3f29efa..52db0e6 100644
--- a/src/core/snorenotificationinstance.cpp
+++ b/src/core/snorenotificationinstance.cpp
@@ -35,8 +35,8 @@ SnoreNotificationInstance::~SnoreNotificationInstance(){
}
-void SnoreNotificationInstance::addAlert(const QString &name, const QString &title){
- _app->addAlert(new Alert(name,title));
+void SnoreNotificationInstance::addAlert(const QString &name, const QString &title){
+ _app->addAlert(new Alert(name,title.isNull()?name:title));
}
@@ -54,3 +54,5 @@ int SnoreNotificationInstance::notify(const QString &alert, const QString &title
qDebug()<<"Broadcasting"<
broadcastNotification(QSharedPointer(new Notification(NULL,_appName,alert,title,text,icon,timeout)));
}
+
+#include "snorenotificationinstance.moc"
diff --git a/src/core/snorenotificationinstance.h b/src/core/snorenotificationinstance.h
index 47dfa9f..2b292e4 100644
--- a/src/core/snorenotificationinstance.h
+++ b/src/core/snorenotificationinstance.h
@@ -17,8 +17,8 @@
#ifndef SNORENOTIFICATIONINSTANCE_H
#define SNORENOTIFICATIONINSTANCE_H
-#include "core/snoreserver.h"
-#include "core/application.h"
+#include "snoreserver.h"
+#include "application.h"
class SnoreNotificationInstance:public QObject
{
@@ -26,10 +26,10 @@ class SnoreNotificationInstance:public QObject
public:
SnoreNotificationInstance(const QString &appname,SnoreServer *parent);
~SnoreNotificationInstance();
- void addAlert(const QString &name,const QString &title);
+ void addAlert(const QString &name,const QString &title = 0);
void registerWithBackends();
void unregisterWithBackends();
- int notify(const QString &alert,const QString &title,const QString &text,const QString &icon=0,int timeout=10);
+ int notify(const QString &alert,const QString &title,const QString &text,const QString &icon = 0,int timeout = 10);
private:
SnoreNotificationInstance();
const QString _appName;
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt
index 129cc85..0232b45 100644
--- a/src/plugins/CMakeLists.txt
+++ b/src/plugins/CMakeLists.txt
@@ -2,7 +2,7 @@ SET(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH}/snoreplugins)
add_subdirectory(freedesktopnotification)
add_subdirectory(freedesktopfrontend)
-add_subdirectory(webposter)
+#add_subdirectory(webposter)
add_subdirectory(snarlnetwork)
add_subdirectory(snarl)
#add_subdirectory(dbusbinding)