sort directories before files in the processing profiles menus

Fixes #4295
This commit is contained in:
Alberto Griggio
2018-01-11 23:43:27 +01:00
parent fa4e07b8bb
commit 9f17139bc1

View File

@@ -49,6 +49,7 @@ bool ProfileStore::init (bool loadAll)
if ((storeState == STORESTATE_NOTINITIALIZED || storeState == STORESTATE_DIRTY) && loadAll) {
storeState = STORESTATE_BEINGINITIALIZED;
_parseProfiles ();
std::stable_partition(entries.begin(), entries.end(), [](const ProfileStoreEntry *e) { return e->type == PSET_FOLDER; });
storeState = STORESTATE_INITIALIZED;
}