X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fmessagefilter.cpp;h=c501c6145d4291e6bdf0ec48e040d0fe81699475;hp=1001ea321a265452df84b0ba3c33825e3a737d3f;hb=6a63070246d89aa2a2474e3a9a1035fa889ad77e;hpb=8cece06596c290d69c1f32b7221c796437f5fabb diff --git a/src/client/messagefilter.cpp b/src/client/messagefilter.cpp index 1001ea32..c501c614 100644 --- a/src/client/messagefilter.cpp +++ b/src/client/messagefilter.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -221,7 +221,8 @@ bool MessageFilter::filterAcceptsRow(int sourceRow, const QModelIndex &sourcePar if (myNetworkId != msgNetworkId) return false; - uint messageTimestamp = sourceModel()->data(sourceIdx, MessageModel::TimestampRole).value().toTime_t(); + qint64 messageTimestamp = sourceModel()->data(sourceIdx, MessageModel::TimestampRole) + .value().toMSecsSinceEpoch(); QString quiter = sourceModel()->data(sourceIdx, Qt::DisplayRole).toString().section(' ', 0, 0, QString::SectionSkipEmpty).toLower(); if (quiter != bufferName().toLower()) return false;