X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.cpp;h=594dc83db7c8616bacb53c1f30f32de12c6d915d;hb=aa49f1a8d52fb95920c7b686ea2c7ae5c1532d87;hp=a03ae5bd4b69b0fc16d23ced779ea75bc5323630;hpb=4be2513b86decea7720f930164b4e893b63e53e0;p=quassel.git diff --git a/src/client/buffermodel.cpp b/src/client/buffermodel.cpp index a03ae5bd..594dc83d 100644 --- a/src/client/buffermodel.cpp +++ b/src/client/buffermodel.cpp @@ -61,10 +61,6 @@ void BufferModel::synchronizeView(QAbstractItemView *view) { view->setSelectionModel(mappedSelectionModel); } -QModelIndex BufferModel::currentIndex() { - return standardSelectionModel()->currentIndex(); -} - void BufferModel::setCurrentIndex(const QModelIndex &newCurrent) { _selectionModelSynchronizer.selectionModel()->setCurrentIndex(newCurrent, QItemSelectionModel::Current); _selectionModelSynchronizer.selectionModel()->select(newCurrent, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);