From: Manuel Nickschas Date: Thu, 30 Jul 2009 19:21:44 +0000 (+0200) Subject: Don't try to mark all incoming messages with the Backlog flag X-Git-Tag: 0.5-rc1~98 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=78074fdf4e251c0ae0a245d375c5b589aa9615fb Don't try to mark all incoming messages with the Backlog flag This was an ugly workaround the need for which went away when BacklogManager was introduced. Anyway, setData() with the FlagsRole was ignored by MessageModelItem... --- diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index 9ee56b82..8b76d0ed 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -944,8 +944,6 @@ void MainWin::messagesInserted(const QModelIndex &parent, int start, int end) { Message::Flags flags = (Message::Flags)idx.data(ChatLineModel::FlagsRole).toInt(); if(flags.testFlag(Message::Backlog) || flags.testFlag(Message::Self)) continue; - flags |= Message::Backlog; // we only want to trigger a highlight once! - Client::messageModel()->setData(idx, (int)flags, ChatLineModel::FlagsRole); BufferId bufId = idx.data(ChatLineModel::BufferIdRole).value(); BufferInfo::Type bufType = Client::networkModel()->bufferType(bufId);