From 9f17139bc1da09366f87579ae2305e541874a0ed Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Thu, 11 Jan 2018 23:43:27 +0100 Subject: [PATCH] sort directories before files in the processing profiles menus Fixes #4295 --- rtengine/profilestore.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/rtengine/profilestore.cc b/rtengine/profilestore.cc index 4d06b6f6b..e79c8e322 100644 --- a/rtengine/profilestore.cc +++ b/rtengine/profilestore.cc @@ -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; }