diff options
-rw-r--r-- | common/config-manager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/config-manager.cpp b/common/config-manager.cpp index b0c4b2b5ef..044474a927 100644 --- a/common/config-manager.cpp +++ b/common/config-manager.cpp @@ -638,6 +638,10 @@ void ConfigManager::addGameDomain(const String &domName) { // the given name already exists? _gameDomains[domName]; + + // Add it to the _domainSaveOrder, if it's not already in there + if (find(_domainSaveOrder.begin(), _domainSaveOrder.end(), domName) == _domainSaveOrder.end()) + _domainSaveOrder.push_back(domName); } void ConfigManager::removeGameDomain(const String &domName) { |