diff --git a/src/organizercore.cpp b/src/organizercore.cpp index a3addcb4..4dceefbf 100644 --- a/src/organizercore.cpp +++ b/src/organizercore.cpp @@ -836,6 +836,13 @@ void OrganizerCore::setCurrentProfile(const QString &profileName) connect(m_CurrentProfile, SIGNAL(modStatusChanged(uint)), this, SLOT(modStatusChanged(uint))); connect(m_CurrentProfile, SIGNAL(modStatusChanged(QList)), this, SLOT(modStatusChanged(QList))); refreshDirectoryStructure(); + + //This line is not actually needed and was only added to allow some + //outside detection of Mo2 profile change. (like BaobobMiller utility) + if (m_CurrentProfile != nullptr) { + settings().directInterface().setValue("selected_profile", + m_CurrentProfile->name().toUtf8().constData()); + } } MOBase::IModRepositoryBridge *OrganizerCore::createNexusBridge() const