diff --git a/src/libsnore/notification/notification.cpp b/src/libsnore/notification/notification.cpp index e5a3e57..d61dbba 100644 --- a/src/libsnore/notification/notification.cpp +++ b/src/libsnore/notification/notification.cpp @@ -155,6 +155,7 @@ void Notification::addActiveIn(const QObject *o) Q_ASSERT_X(contains,Q_FUNC_INFO,"already active"); if(contains) { snoreDebug(SNORE_WARNING) << o << "already active in" << id(); + return; } d->m_activeIn.insert(o); SnoreCorePrivate::instance()->m_activeNotifications[id()] = *this; diff --git a/src/plugins/secondary_backends/nma/nma.cpp b/src/plugins/secondary_backends/nma/nma.cpp index 4b8cc6a..fd9f7bc 100644 --- a/src/plugins/secondary_backends/nma/nma.cpp +++ b/src/plugins/secondary_backends/nma/nma.cpp @@ -48,11 +48,12 @@ void NotifyMyAndroid::slotNotify(Notification notification) request.setHeader(QNetworkRequest::ContentTypeHeader, QVariant("application/x-www-form-urlencoded")); // TODO: use toHTML? - QString data(QString("apikey=%1&application=%2&event=%3&description=%4&content-type=text/html") + QString data(QString("apikey=%1&application=%2&event=%3&description=%4&priority=%5&content-type=text/html") .arg(key, notification.application().name(), Utils::toPlainText(notification.title()), - Utils::toPlainText(notification.text()))); + Utils::toPlainText(notification.text()), + QString::number(notification.priority()))); QNetworkReply *reply = m_manager.post(request, data.toUtf8().constData()); connect(reply, &QNetworkReply::finished, [reply]() {