mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-29 19:06:55 -05:00
Implement default username.
This commit is contained in:
parent
7a3a783eeb
commit
71b15c589c
4 changed files with 39 additions and 3 deletions
|
|
@ -105,6 +105,7 @@ void DatabaseWidget::createEntry()
|
|||
{
|
||||
m_newEntry = new Entry();
|
||||
m_newEntry->setUuid(Uuid::random());
|
||||
m_newEntry->setUsername(m_db->metadata()->defaultUserName());
|
||||
m_newParent = m_groupView->currentGroup();
|
||||
switchToEntryEdit(m_newEntry, true);
|
||||
}
|
||||
|
|
@ -240,6 +241,7 @@ void DatabaseWidget::updateSettings(bool accepted)
|
|||
if (accepted) {
|
||||
m_db->updateKey(m_databaseSettingsWidget->transformRounds());
|
||||
m_db->metadata()->setDescription(m_databaseSettingsWidget->dbDescription());
|
||||
m_db->metadata()->setDefaultUserName(m_databaseSettingsWidget->defaultUsername());
|
||||
m_db->metadata()->setRecycleBinEnabled(m_databaseSettingsWidget->recylceBinEnabled());
|
||||
m_db->metadata()->setName(m_databaseSettingsWidget->dbName());
|
||||
}
|
||||
|
|
@ -267,6 +269,7 @@ void DatabaseWidget::switchToDatabaseSettings()
|
|||
{
|
||||
m_databaseSettingsWidget->setForms(m_db->metadata()->name(),
|
||||
m_db->metadata()->description(),
|
||||
m_db->metadata()->defaultUserName(),
|
||||
m_db->metadata()->recycleBinEnabled(),
|
||||
m_db->transformRounds());
|
||||
setCurrentIndex(4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue