Removed assert test for indexFromEntry.
When no row is selected, row equals -1. Some operations call indexFromEntry when there is no row selected and these should be allowed to succeed.
This commit is contained in:
@@ -41,7 +41,7 @@ Entry* EntryModel::entryFromIndex(const QModelIndex& index) const
|
||||
QModelIndex EntryModel::indexFromEntry(Entry* entry) const
|
||||
{
|
||||
int row = m_entries.indexOf(entry);
|
||||
Q_ASSERT(row != -1);
|
||||
//Q_ASSERT(row != -1);
|
||||
return index(row, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user