diff options
| author | Tannin <devnull@localhost> | 2014-06-08 15:10:08 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-06-08 15:10:08 +0200 |
| commit | 0feb4b702d8a9eb1465c79c49ada5de01b67083d (patch) | |
| tree | 378bba0b46c750f02f3f953e9f4076462a2633bf /src/modlist.cpp | |
| parent | 5a4b6e70fd815c9052ff71a4244bdeb707e92ba1 (diff) | |
- loot client now only updates the masterlist once per MO session
- new event to notify plugins of changed mod priority
- overwrite now shows up in the "checked" category instead of "unchecked"
- display of "foreign" mods can now be limited to only official content
- bugfix: bsa extraction dialog showed up even if the plugin was disabled
- bugfix: after detection of foreign mods the priority of the overwrite folder could get messed up
- bugfix: when displaying only the context menu for the mod list as a whole, the menu didn't disappear
- bugfix: MO crashed when trying to download via the integrated browser
Diffstat (limited to 'src/modlist.cpp')
| -rw-r--r-- | src/modlist.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp index 66bc66b4..e4728618 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -547,7 +547,9 @@ void ModList::changeModPriority(std::vector<int> sourceIndices, int newPriority) for (std::vector<int>::const_iterator iter = sourceIndices.begin(); iter != sourceIndices.end(); ++iter) { + int oldPriority = m_Profile->getModPriority(*iter); m_Profile->setModPriority(*iter, newPriority); + m_ModMoved(ModInfo::getByIndex(*iter)->name(), oldPriority, newPriority); } emit layoutChanged(); @@ -655,6 +657,12 @@ bool ModList::onModStateChanged(const std::function<void (const QString &, IModL return conn.connected(); } +bool ModList::onModMoved(const std::function<void (const QString &, int, int)> &func) +{ + auto conn = m_ModMoved.connect(func); + return conn.connected(); +} + bool ModList::dropURLs(const QMimeData *mimeData, int row, const QModelIndex &parent) { QStringList source; |
