summaryrefslogtreecommitdiff
path: root/src/modlist.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-05-28 22:43:19 +0200
committerTannin <devnull@localhost>2013-05-28 22:43:19 +0200
commitd8cb9a4e3710b1a09ac2795541c6b792a917e3a1 (patch)
tree1e69347e9659bf3408b794976791048b2b05d181 /src/modlist.cpp
parent3c21d1884a499066785e70dc44a869cb8b2d589d (diff)
- bugfixes in hookdll related to path-rerouting
- bugfix: expanding modlist groups after changes to modlist works now - bugfix: sorting grouped modlist was broken
Diffstat (limited to 'src/modlist.cpp')
-rw-r--r--src/modlist.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp
index 3fc8ae23..f87687bb 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -203,7 +203,12 @@ QVariant ModList::data(const QModelIndex &modelIndex, int role) const
return QVariant();
}
} else if (column == COL_PRIORITY) {
- return m_Profile->getModPriority(modIndex);
+ int priority = modInfo->getFixedPriority();
+ if (priority != INT_MIN) {
+ return priority;
+ } else {
+ return m_Profile->getModPriority(modIndex);
+ }
} else {
return modInfo->getNexusID();
}
@@ -648,13 +653,14 @@ void ModList::removeRow(int row, const QModelIndex&)
}
-void ModList::notifyChange(int row)
+void ModList::notifyChange(int rowStart, int rowEnd)
{
- if (row < 0) {
+ if (rowStart < 0) {
beginResetModel();
endResetModel();
} else {
- emit dataChanged(this->index(row, 0), this->index(row, this->columnCount() - 1));
+ if (rowEnd == -1) rowEnd = rowStart;
+ emit dataChanged(this->index(rowStart, 0), this->index(rowEnd, this->columnCount() - 1));
}
}