From 78074fdf4e251c0ae0a245d375c5b589aa9615fb Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Thu, 30 Jul 2009 21:21:44 +0200 Subject: [PATCH] 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... --- src/qtui/mainwin.cpp | 2 -- 1 file changed, 2 deletions(-) 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); -- 2.20.1