diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-02-15 15:06:44 +0100 |
|---|---|---|
| committer | Al <gabriel.cortesi@outlook.com> | 2019-02-15 15:06:44 +0100 |
| commit | 2106f292241da110e2dbd52e72c1bfa60f90e482 (patch) | |
| tree | 4e7fd1c74b1ec625b4e546b5ca66f5d77f6ba9d6 | |
| parent | ad7d740a0bc141f77dc76ad53317bdacfb37d1cc (diff) | |
Write currentProfile to Ini file on profile change. Exclusively for outside detection of profile change.
| -rw-r--r-- | src/organizercore.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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<uint>)), this, SLOT(modStatusChanged(QList<uint>)));
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
|
