mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-07 14:32:55 -04:00
Use folder icon when not defaut icon
This commit is contained in:
parent
b194c29166
commit
6c663a19bf
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
#include "autotype/AutoType.h"
|
#include "autotype/AutoType.h"
|
||||||
#include "core/Config.h"
|
#include "core/Config.h"
|
||||||
#include "core/FilePath.h"
|
#include "core/FilePath.h"
|
||||||
|
#include "core/Group.h"
|
||||||
#include "core/Metadata.h"
|
#include "core/Metadata.h"
|
||||||
#include "core/Tools.h"
|
#include "core/Tools.h"
|
||||||
#include "gui/ChangeMasterKeyWidget.h"
|
#include "gui/ChangeMasterKeyWidget.h"
|
||||||
|
@ -213,6 +214,9 @@ void DatabaseWidget::createEntry()
|
||||||
m_newEntry->setUuid(Uuid::random());
|
m_newEntry->setUuid(Uuid::random());
|
||||||
m_newEntry->setUsername(m_db->metadata()->defaultUserName());
|
m_newEntry->setUsername(m_db->metadata()->defaultUserName());
|
||||||
m_newParent = m_groupView->currentGroup();
|
m_newParent = m_groupView->currentGroup();
|
||||||
|
if (m_newParent->iconNumber() != Group::DefaultIconNumber) {
|
||||||
|
m_newEntry->setIcon(m_newParent->iconNumber());
|
||||||
|
}
|
||||||
switchToEntryEdit(m_newEntry, true);
|
switchToEntryEdit(m_newEntry, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue