create new entry while searching

This commit is contained in:
thez3ro 2018-01-18 01:16:46 +01:00
parent edb7b56f1a
commit 00ce60ef20
No known key found for this signature in database
GPG key ID: F628F9E41DD7C073
2 changed files with 7 additions and 2 deletions

View file

@ -339,6 +339,11 @@ void DatabaseWidget::createEntry()
}
m_newEntry = new Entry();
if (isInSearchMode()) {
m_newEntry->setTitle(getCurrentSearch());
endSearch();
}
m_newEntry->setUuid(Uuid::random());
m_newEntry->setUsername(m_db->metadata()->defaultUserName());
m_newParent = m_groupView->currentGroup();