Commit 67ea96e2 authored by Frank Osterfeld's avatar Frank Osterfeld
Browse files

When deleting an item, select the next one

CCBUG: 304055
parent 78fff90c
......@@ -985,6 +985,12 @@ void Akregator2::MainWidget::slotArticleDelete()
job->start();
}
//Select the next item
const QModelIndexList indexes = m_articleListView->selectionModel()->selectedRows();
if ( indexes.size() == 1 ) {
const QModelIndex nextItem = indexes[0].sibling( indexes[0].row()+1, 0 );
m_articleListView->selectionModel()->select( nextItem, QItemSelectionModel::ClearAndSelect|QItemSelectionModel::Rows );
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment