mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-14 00:39:53 -05:00
Make open folder icon exempt from "Apply group icon to entry"
* Fix #9201
This commit is contained in:
parent
52775d4a3f
commit
420c364bf7
@ -33,6 +33,7 @@
|
|||||||
#include <QtConcurrentFilter>
|
#include <QtConcurrentFilter>
|
||||||
|
|
||||||
const int Group::DefaultIconNumber = 48;
|
const int Group::DefaultIconNumber = 48;
|
||||||
|
const int Group::OpenFolderIconNumber = 49;
|
||||||
const int Group::RecycleBinIconNumber = 43;
|
const int Group::RecycleBinIconNumber = 43;
|
||||||
const QString Group::RootAutoTypeSequence = "{USERNAME}{TAB}{PASSWORD}{ENTER}";
|
const QString Group::RootAutoTypeSequence = "{USERNAME}{TAB}{PASSWORD}{ENTER}";
|
||||||
|
|
||||||
@ -1132,7 +1133,8 @@ void Group::applyGroupIconOnCreateTo(Entry* entry)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (iconNumber() == Group::DefaultIconNumber && iconUuid().isNull()) {
|
if ((iconNumber() == Group::DefaultIconNumber || iconNumber() == Group::OpenFolderIconNumber)
|
||||||
|
&& iconUuid().isNull()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,6 +110,7 @@ public:
|
|||||||
bool equals(const Group* other, CompareItemOptions options) const;
|
bool equals(const Group* other, CompareItemOptions options) const;
|
||||||
|
|
||||||
static const int DefaultIconNumber;
|
static const int DefaultIconNumber;
|
||||||
|
static const int OpenFolderIconNumber;
|
||||||
static const int RecycleBinIconNumber;
|
static const int RecycleBinIconNumber;
|
||||||
static const QString RootAutoTypeSequence;
|
static const QString RootAutoTypeSequence;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user