summaryrefslogtreecommitdiff
path: root/src/modlist.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-01-07 23:13:40 +0100
committerTannin <devnull@localhost>2015-01-07 23:13:40 +0100
commit2b21463514a46e7f3600f32560a0e944d15a2750 (patch)
tree78d9debcdb45e4f7f597f7dabeac08f77c37e980 /src/modlist.cpp
parentd20a26e0eb817c924028f912d35e21668c7f9e22 (diff)
- download servers that haven't been available for over a month are now purged from the known servers list
- bugfix: encoding detection for fomod xmls could incorrectly interpret files as utf16 encoded - bugfix: hashing algorithm for bsa files was wrong - bugfix: nxmhandler reported non-issues as errors - bugfix: nxmhandler tried to apply chrome fix on every start - bugfix: "not endorsed" icon displayed for non-nexus mods - bugfix: when drag&dropping within the overwrite dialog the file might still get moved to a mod (and probably not the intended one) - bugfix: dropping files from overwrite on the modlist was refused when not sorting by priority (only in 1.2.15) - bugfix: unmanaged mods couldn't be reordered (only in 1.2.15)
Diffstat (limited to 'src/modlist.cpp')
-rw-r--r--src/modlist.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp
index 43862008..0cf8766a 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -571,10 +571,15 @@ void ModList::changeModPriority(int sourceIndex, int newPriority)
emit modorder_changed();
}
-void ModList::modInfoAboutToChange(ModInfo::Ptr info)
+bool ModList::modInfoAboutToChange(ModInfo::Ptr info)
{
- m_ChangeInfo.name = info->name();
- m_ChangeInfo.state = state(info->name());
+ if (m_ChangeInfo.name.isEmpty()) {
+ m_ChangeInfo.name = info->name();
+ m_ChangeInfo.state = state(info->name());
+ return true;
+ } else {
+ return false;
+ }
}
void ModList::modInfoChanged(ModInfo::Ptr info)
@@ -590,6 +595,7 @@ void ModList::modInfoChanged(ModInfo::Ptr info)
} else {
qCritical("modInfoChanged not called after modInfoAboutToChange");
}
+ m_ChangeInfo.name = QString();
}
void ModList::disconnectSlots() {