From 8c0756bd9d87e8394d49e7611532002eecbc220a Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 9 Mar 2015 12:18:25 +0100 Subject: - bugfix: changing the highlight in the modlist didn't always prompt an immediate update of overwrite markers --- src/modlist.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/modlist.cpp') diff --git a/src/modlist.cpp b/src/modlist.cpp index c6beee8b..9ac2622d 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -634,7 +634,7 @@ void ModList::setOverwriteMarkers(const std::set &overwrite, const { m_Overwrite = overwrite; m_Overwritten = overwritten; - notifyChange(0, rowCount()); + notifyChange(0, rowCount() - 1); } bool ModList::modInfoAboutToChange(ModInfo::Ptr info) @@ -917,7 +917,8 @@ void ModList::notifyChange(int rowStart, int rowEnd) beginResetModel(); endResetModel(); } else { - if (rowEnd == -1) rowEnd = rowStart; + if (rowEnd == -1) + rowEnd = rowStart; emit dataChanged(this->index(rowStart, 0), this->index(rowEnd, this->columnCount() - 1)); } } @@ -985,6 +986,7 @@ QString ModList::getColumnToolTip(int column) "Game plugins (esp/esm)" "Interface" "Meshes" + "BSA" "Textures" "Sounds" "Music" @@ -1093,5 +1095,5 @@ bool ModList::eventFilter(QObject *obj, QEvent *event) return toggleSelection(itemView); } } - return QObject::eventFilter(obj, event); + return QAbstractItemModel::eventFilter(obj, event); } -- cgit v1.3.1