Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -rupN ./src//qtui/mainwin.cpp ../quassel-0.8.0-raron/src/qtui/mainwin.cpp
- --- ./src//qtui/mainwin.cpp 2012-03-20 21:39:20.000000000 +0100
- +++ ../quassel-0.8.0-raron/src/qtui/mainwin.cpp 2012-08-22 05:20:00.000000000 +0200
- @@ -1265,6 +1265,8 @@ void MainWin::messagesInserted(const QMo
- continue;
- }
- Message::Flags flags = (Message::Flags)idx.data(ChatLineModel::FlagsRole).toInt();
- + Message::Type type = (Message::Type)idx.data(ChatLineModel::TypeRole).toInt();
- +
- if(flags.testFlag(Message::Backlog) || flags.testFlag(Message::Self))
- continue;
- @@ -1274,6 +1276,10 @@ void MainWin::messagesInserted(const QMo
- if(hasFocus && bufId == Client::bufferModel()->currentBuffer())
- continue;
- + if (type & Message::Plain) {
- + QtUi::instance()->invokeNotification(bufId, AbstractNotificationBackend::HighlightFocused, "en", "asas");
- + }
- +
- if((flags & Message::Highlight || bufType == BufferInfo::QueryBuffer)
- && !(Client::ignoreListManager() && Client::ignoreListManager()->match(idx.data(MessageModel::MessageRole).value<Message>(),
- Client::networkModel()->networkName(bufId))))
- diff -rupN ./src//qtui/systraynotificationbackend.cpp ../quassel-0.8.0-raron/src/qtui/systraynotificationbackend.cpp
- --- ./src//qtui/systraynotificationbackend.cpp 2012-03-20 21:39:20.000000000 +0100
- +++ ../quassel-0.8.0-raron/src/qtui/systraynotificationbackend.cpp 2012-08-22 05:20:14.000000000 +0200
- @@ -52,11 +52,11 @@ SystrayNotificationBackend::SystrayNotif
- }
- void SystrayNotificationBackend::notify(const Notification &n) {
- - if(n.type != Highlight && n.type != PrivMsg)
- + if(n.type != Highlight && n.type != HighlightFocused && n.type != PrivMsg)
- return;
- _notifications.append(n);
- - if(_showBubble) {
- + if(_showBubble && n.type != HighlightFocused) {
- QString title = Client::networkModel()->networkName(n.bufferId) + " - " + Client::networkModel()->bufferName(n.bufferId);
- QString message = QString("<%1> %2").arg(n.sender, n.message);
- QtUi::mainWindow()->systemTray()->showMessage(title, message, SystemTray::Information, 10000, n.notificationId);
Advertisement
Add Comment
Please, Sign In to add comment