X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.cpp;h=36e9825a78dc5b84964f9b12a535fb4184d80b47;hp=2a5bad4c225268c3ca2baef2eea46f646d8fe44e;hb=934ff82a6554ea72ea449c561f53804dbafc20f0;hpb=12feae2e4609b90c87d3c1857031909248143fd7 diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index 2a5bad4c..36e9825a 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -957,9 +957,8 @@ void MainWin::messagesInserted(const QModelIndex &parent, int start, int end) { if(hasFocus && bufId == _bufferWidget->currentBuffer()) continue; - const MessageModelItem *item = const_cast(Client::messageModel())->messageItemAt(i); if((flags & Message::Highlight || bufType == BufferInfo::QueryBuffer) && - !Client::ignoreListManager()->match(item->message(), Client::networkModel()->networkName(bufId))) { + !Client::ignoreListManager()->match(idx.data(MessageModel::MessageRole).value(), Client::networkModel()->networkName(bufId))) { QModelIndex senderIdx = Client::messageModel()->index(i, ChatLineModel::SenderColumn); QString sender = senderIdx.data(ChatLineModel::EditRole).toString(); QString contents = idx.data(ChatLineModel::DisplayRole).toString();