diff --git a/src/libsnore/application_p.cpp b/src/libsnore/application_p.cpp index 64bd820..22c745a 100644 --- a/src/libsnore/application_p.cpp +++ b/src/libsnore/application_p.cpp @@ -26,7 +26,8 @@ ApplicationData::ApplicationData(const QString &name, const Icon &icon): { Q_ASSERT_X(!name.isEmpty(), Q_FUNC_INFO, "invalid name detected"); m_hint.setValue("pushover-token", "aFB1TPCyZkkr7mubCGEKy5vJEWak9t"); - m_hint.setValue("use-markup", QVariant::fromValue(false)); + m_hint.setValue("use-markup", false); + m_hints.setValue("silent", SnoreCore::instance().value("Silent", LOCAL_SETTING)); } ApplicationData::~ApplicationData() diff --git a/src/libsnore/notification/notification_p.cpp b/src/libsnore/notification/notification_p.cpp index 7fc9338..f1e7f9c 100644 --- a/src/libsnore/notification/notification_p.cpp +++ b/src/libsnore/notification/notification_p.cpp @@ -47,7 +47,6 @@ NotificationData::NotificationData(const Snore::Application &application, const notificationCount++; snoreDebug(SNORE_INFO) << "Creating Notification: ActiveNotifications" << notificationCount << "id" << m_id; snoreDebug(SNORE_INFO) << title << text; - initHints(); } Snore::NotificationData::NotificationData(const Notification &old, const QString &title, const QString &text, const Icon &icon, int timeout, Notification::Prioritys priority): @@ -66,7 +65,6 @@ Snore::NotificationData::NotificationData(const Notification &old, const QString notificationCount++; snoreDebug(SNORE_INFO) << "Creating Notification: ActiveNotifications" << notificationCount << "id" << m_id; snoreDebug(SNORE_INFO) << title << text; - initHints(); } NotificationData::~NotificationData() @@ -107,8 +105,3 @@ QString NotificationData::resolveMarkup(const QString &string, Utils::MARKUP_FLA } } -void NotificationData::initHints() -{ - m_hints.setValue("silent", SnoreCore::instance().value("Silent", LOCAL_SETTING)); -} - diff --git a/src/libsnore/notification/notification_p.h b/src/libsnore/notification/notification_p.h index 5efbdb3..c3e0031 100644 --- a/src/libsnore/notification/notification_p.h +++ b/src/libsnore/notification/notification_p.h @@ -53,8 +53,6 @@ public: private: Q_DISABLE_COPY(NotificationData) - void initHints(); - uint m_id; uint m_updateID; int m_timeout;