Prevent selection of both entries when an entry is cloned via shortcut.

This commit is contained in:
Florian Geyer 2012-07-23 22:27:02 +02:00
parent 8bff332be0
commit 9f21b54c4e

View File

@ -92,7 +92,8 @@ bool EntryView::isSingleEntrySelected()
void EntryView::setCurrentEntry(Entry* entry)
{
setCurrentIndex(m_sortModel->mapFromSource(m_model->indexFromEntry(entry)));
selectionModel()->setCurrentIndex(m_sortModel->mapFromSource(m_model->indexFromEntry(entry)),
QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
}
Entry* EntryView::entryFromIndex(const QModelIndex& index)