summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-07-07 20:52:46 +0200
committerTannin <devnull@localhost>2015-07-07 20:52:46 +0200
commit9a5965afa73077e541c4d8bdc49f0729b42c482d (patch)
treedbe26b486c2cb9c3e3694dfd4fb9fdb26313037e /src/organizercore.cpp
parent7853ba5f9a246b56e4dd0abfcb55a7e81e99ad9f (diff)
bugfix: invalidation bsa wasn't created when switching to a profile that needed it
invalidation bsa is now always placed as the first bsa
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index fa1f372c..8b2a755d 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -529,6 +529,12 @@ void OrganizerCore::setCurrentProfile(const QString &profileName)
m_CurrentProfile = newProfile;
m_ModList.setProfile(newProfile);
+ if (m_CurrentProfile->invalidationActive(nullptr)) {
+ m_CurrentProfile->activateInvalidation();
+ } else {
+ m_CurrentProfile->deactivateInvalidation();
+ }
+
connect(m_CurrentProfile, SIGNAL(modStatusChanged(uint)), this, SLOT(modStatusChanged(uint)));
refreshDirectoryStructure();
}