mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
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:
parent
b28cb19ae3
commit
c7158234dc
@ -41,7 +41,7 @@ Entry* EntryModel::entryFromIndex(const QModelIndex& index) const
|
|||||||
QModelIndex EntryModel::indexFromEntry(Entry* entry) const
|
QModelIndex EntryModel::indexFromEntry(Entry* entry) const
|
||||||
{
|
{
|
||||||
int row = m_entries.indexOf(entry);
|
int row = m_entries.indexOf(entry);
|
||||||
Q_ASSERT(row != -1);
|
//Q_ASSERT(row != -1);
|
||||||
return index(row, 1);
|
return index(row, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user