Find entry by title.

This commit is contained in:
Louis-Bertrand Varin 2017-05-21 13:51:16 -04:00
parent 54ad927044
commit eeafe77614
2 changed files with 20 additions and 1 deletions

View file

@ -497,7 +497,18 @@ Entry* Group::findEntry(QString entryId)
}
}
return findEntryByPath(entryId);
Entry* entry = findEntryByPath(entryId);
if (entry) {
return entry;
}
for (Entry* entry : entriesRecursive(false)) {
if (entry->title() == entryId) {
return entry;
}
}
return nullptr;
}
Entry* Group::findEntryByUuid(const Uuid& uuid)