mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-04 21:17:43 +03:00
create new entry while searching
This commit is contained in:
parent
edb7b56f1a
commit
00ce60ef20
2 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue