diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-17 13:20:53 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-17 13:20:53 -0400 |
| commit | 2ffad7edf2946e66585a67c4ab58c0522cd8e412 (patch) | |
| tree | b0f915737867ed4b4c5a8415ce79dffa26298322 /src/organizercore.cpp | |
| parent | dfa15218f33ad06a6e868e8e5f1022026b6530a9 (diff) | |
made member variables in SettingsTab private, added accessors
SettingsDialog now uses GeometrySaver
Diffstat (limited to 'src/organizercore.cpp')
| -rw-r--r-- | src/organizercore.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp index 233a631e..73d0abac 100644 --- a/src/organizercore.cpp +++ b/src/organizercore.cpp @@ -745,16 +745,11 @@ void OrganizerCore::setCurrentProfile(const QString &profileName) m_CurrentProfile->deactivateInvalidation(); } + m_Settings.setSelectedProfileName(m_CurrentProfile->name()); + 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 |
