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:
Keith Bennett 2014-03-23 16:51:41 +00:00
parent b28cb19ae3
commit c7158234dc

View File

@ -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);
}