X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.cpp;h=0b87f813a8aedd03e229d5c18657aa73e959e354;hp=2fc222ed4a799c4d455353d20a2169a9a1f85264;hb=3bb86923bd1b39089abacc4fcb08bb4939ab70e0;hpb=770b7ef54b03f3ebd1e29a58b4757505e1809b2d diff --git a/src/client/buffermodel.cpp b/src/client/buffermodel.cpp index 2fc222ed..0b87f813 100644 --- a/src/client/buffermodel.cpp +++ b/src/client/buffermodel.cpp @@ -73,5 +73,7 @@ QModelIndex BufferModel::currentIndex() { void BufferModel::currentChanged(const QModelIndex ¤t, const QModelIndex &previous) { Q_UNUSED(current); + setData(current, QDateTime::currentDateTime(), NetworkModel::LastSeenRole); + setData(previous, QDateTime::currentDateTime(), NetworkModel::LastSeenRole); setData(previous, qVariantFromValue((int)BufferItem::NoActivity), NetworkModel::BufferActivityRole); }