Make open folder icon exempt from "Apply group icon to entry"

* Fix #9201
This commit is contained in:
Jonathan White 2023-03-05 22:14:06 -05:00
parent 52775d4a3f
commit 420c364bf7
2 changed files with 4 additions and 1 deletions

View File

@ -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;
} }

View File

@ -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;