X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.cpp;h=e0f80ed12b6caec2448c0acc026c46def328552b;hp=4b78ea9509cb3ddb7b58b9c1a7fddcf9196461db;hb=8010224cf5bfe5685dc2cf535e8dc1ec19c4c364;hpb=1f02b7201ab7b86238e705d2ce5b22f50bf6acfe diff --git a/src/client/buffermodel.cpp b/src/client/buffermodel.cpp index 4b78ea95..e0f80ed1 100644 --- a/src/client/buffermodel.cpp +++ b/src/client/buffermodel.cpp @@ -35,8 +35,6 @@ BufferModel::BufferModel(NetworkModel *parent) // initialize the Property Mapper _propertyMapper.setModel(this); _selectionModelSynchronizer.addRegularSelectionModel(_propertyMapper.selectionModel()); - connect(_propertyMapper.selectionModel(), SIGNAL(currentChanged(QModelIndex, QModelIndex)), - this, SLOT(currentChanged(QModelIndex, QModelIndex))); } BufferModel::~BufferModel() { @@ -72,10 +70,3 @@ void BufferModel::mapProperty(int column, int role, QObject *target, const QByte QModelIndex BufferModel::currentIndex() { return propertyMapper()->selectionModel()->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); -}