mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-12 01:29:38 -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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue