X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffer.cpp;h=de3bfcf6d7bbb686a4a5ee672936a65395232575;hp=c020424a81849e391600b831d1bfcfe165d0face;hb=df0846fca1b6a8427498a125b32f4da6d236a7fc;hpb=374ea2a5188930b880ad67584a9b0055022feecf diff --git a/src/client/buffer.cpp b/src/client/buffer.cpp index c020424a..de3bfcf6 100644 --- a/src/client/buffer.cpp +++ b/src/client/buffer.cpp @@ -65,7 +65,7 @@ void Buffer::prependMsg(const Message &msg) { bool Buffer::layoutMsg() { if(layoutQueue.isEmpty()) return false; - + AbstractUiMsg *m = Client::layoutMsg(layoutQueue.takeFirst()); layoutedMsgs.prepend(m); emit msgPrepended(m); @@ -84,7 +84,7 @@ void Buffer::setVisible(bool visible) { void Buffer::setLastSeenMsg(const MsgId &msgId) { // qDebug() << "want to set lastSeen:" << bufferInfo() << seen << lastSeen(); const MsgId oldLastSeen = lastSeenMsg(); - if(!oldLastSeen.isValid() || msgId.isValid() && msgId > oldLastSeen) { + if(!oldLastSeen.isValid() || (msgId.isValid() && msgId > oldLastSeen)) { //qDebug() << "setting:" << bufferInfo().bufferName() << seen; _lastSeenMsg = msgId; Client::setBufferLastSeenMsg(bufferInfo().bufferId(), msgId); @@ -114,7 +114,7 @@ void Buffer::updateActivityLevel(const Message &msg) { ActivityLevel level = activityLevel() | OtherActivity; if(msg.type() & (Message::Plain | Message::Notice | Message::Action)) level |= NewMessage; - + if(msg.flags() & Message::Highlight) level |= Highlight;