From f7deeb555303096e35a725b9a039be542f2b9820 Mon Sep 17 00:00:00 2001 From: me_desk Date: Wed, 16 Oct 2013 18:16:34 +0000 Subject: fixed multiple StartBlinking() and order of removing events from blink queue git-svn-id: svn://localhost/project_picapica/trunk@289 fb96df88-216d-11de-830c-f3023f12d8ac --- pica-client/msguirouter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pica-client/msguirouter.cpp b/pica-client/msguirouter.cpp index 2ab48c4..a381b8e 100644 --- a/pica-client/msguirouter.cpp +++ b/pica-client/msguirouter.cpp @@ -36,7 +36,7 @@ void MsgUIRouter::trayicon_dclick() } else { - QByteArray blinker_id = blinkqueue.takeLast(); + QByteArray blinker_id = blinkqueue.takeFirst(); if (chatwindows.contains(blinker_id)) { @@ -78,8 +78,10 @@ void MsgUIRouter::msg_from_peer(QByteArray from, QString msg) if (!chatwindows[from]->isActiveWindow()) { + if (blinkqueue.isEmpty()) + systray->StartBlinking(); + blinkqueue.append(from); - systray->StartBlinking(); } } -- cgit v1.2.1