summaryrefslogtreecommitdiffstats
path: root/pica-client/msguirouter.cpp
diff options
context:
space:
mode:
authorAnton <anton@picapica>2016-08-13 19:39:27 +0400
committerAnton <anton@picapica>2016-08-13 19:39:27 +0400
commitdc932321943129297cd9b32184134b86fb72aa37 (patch)
tree12f3009d15a54c901ef9471f55705c9f34763e57 /pica-client/msguirouter.cpp
parentc78395ea13aead21e7041f42699fcbf3753f1832 (diff)
downloadpica-pica-dc932321943129297cd9b32184134b86fb72aa37.tar.gz
pica-pica-dc932321943129297cd9b32184134b86fb72aa37.zip
show only critical messages, other messages are available on clicking "show notifications" button
Diffstat (limited to 'pica-client/msguirouter.cpp')
-rw-r--r--pica-client/msguirouter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/pica-client/msguirouter.cpp b/pica-client/msguirouter.cpp
index 3264490..84bbf56 100644
--- a/pica-client/msguirouter.cpp
+++ b/pica-client/msguirouter.cpp
@@ -23,7 +23,7 @@ MsgUIRouter::MsgUIRouter(QObject *parent) :
connect(skynet, SIGNAL(UnableToDeliver(QByteArray,QString)), this, SLOT(delivery_failed(QByteArray,QString)));
connect(skynet, SIGNAL(Delivered(QByteArray)), this, SLOT(delivered(QByteArray)));
connect(skynet, SIGNAL(CertificateForged(QByteArray,QString,QString)), this, SLOT(scary_cert_message(QByteArray,QString,QString)));
- connect(skynet, SIGNAL(ErrMsgFromNode(QString)), this, SLOT(notification(QString)));
+ connect(skynet, SIGNAL(StatusMsg(QString, bool)), this, SLOT(notification(QString, bool)));
connect(systray, SIGNAL(doubleclicked()), this, SLOT(trayicon_dclick()));
}
@@ -166,8 +166,8 @@ void MsgUIRouter::scary_cert_message(QByteArray peer_id, QString received_cert,
fcd.exec();
}
-void MsgUIRouter::notification(QString text)
+void MsgUIRouter::notification(QString text, bool is_critical)
{
if (mainwindow)
- mainwindow->AddNotification(text);
+ mainwindow->AddNotification(text, is_critical);
}