Guest User

Untitled

a guest
Aug 21st, 2012
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.20 KB | None | 0 0
  1. diff -rupN ./src//qtui/mainwin.cpp ../quassel-0.8.0-raron/src/qtui/mainwin.cpp
  2. --- ./src//qtui/mainwin.cpp 2012-03-20 21:39:20.000000000 +0100
  3. +++ ../quassel-0.8.0-raron/src/qtui/mainwin.cpp 2012-08-22 05:20:00.000000000 +0200
  4. @@ -1265,6 +1265,8 @@ void MainWin::messagesInserted(const QMo
  5.        continue;
  6.      }
  7.      Message::Flags flags = (Message::Flags)idx.data(ChatLineModel::FlagsRole).toInt();
  8. +    Message::Type type = (Message::Type)idx.data(ChatLineModel::TypeRole).toInt();
  9. +
  10.      if(flags.testFlag(Message::Backlog) || flags.testFlag(Message::Self))
  11.        continue;
  12.  
  13. @@ -1274,6 +1276,10 @@ void MainWin::messagesInserted(const QMo
  14.      if(hasFocus && bufId == Client::bufferModel()->currentBuffer())
  15.        continue;
  16.  
  17. +    if (type & Message::Plain) {
  18. +      QtUi::instance()->invokeNotification(bufId, AbstractNotificationBackend::HighlightFocused, "en", "asas");
  19. +    }
  20. +
  21.      if((flags & Message::Highlight || bufType == BufferInfo::QueryBuffer)
  22.        && !(Client::ignoreListManager() && Client::ignoreListManager()->match(idx.data(MessageModel::MessageRole).value<Message>(),
  23.                                                                               Client::networkModel()->networkName(bufId))))
  24. diff -rupN ./src//qtui/systraynotificationbackend.cpp ../quassel-0.8.0-raron/src/qtui/systraynotificationbackend.cpp
  25. --- ./src//qtui/systraynotificationbackend.cpp  2012-03-20 21:39:20.000000000 +0100
  26. +++ ../quassel-0.8.0-raron/src/qtui/systraynotificationbackend.cpp  2012-08-22 05:20:14.000000000 +0200
  27. @@ -52,11 +52,11 @@ SystrayNotificationBackend::SystrayNotif
  28.  }
  29.  
  30.  void SystrayNotificationBackend::notify(const Notification &n) {
  31. -  if(n.type != Highlight && n.type != PrivMsg)
  32. +  if(n.type != Highlight && n.type != HighlightFocused && n.type != PrivMsg)
  33.      return;
  34.  
  35.    _notifications.append(n);
  36. -  if(_showBubble) {
  37. +  if(_showBubble && n.type != HighlightFocused) {
  38.      QString title = Client::networkModel()->networkName(n.bufferId) + " - " + Client::networkModel()->bufferName(n.bufferId);
  39.      QString message = QString("<%1> %2").arg(n.sender, n.message);
  40.      QtUi::mainWindow()->systemTray()->showMessage(title, message, SystemTray::Information, 10000, n.notificationId);
Advertisement
Add Comment
Please, Sign In to add comment