mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
Use folder icon when not defaut icon
This commit is contained in:
parent
b194c29166
commit
6c663a19bf
@ -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…
Reference in New Issue
Block a user