diff options
| author | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2025-05-22 03:38:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-22 10:38:39 +0200 |
| commit | eddc30a47f3daefbe4ef29b5de261a1e18949dd3 (patch) | |
| tree | 2f29288944010550270fa0a0130dd37027a346b0 /src/modlistview.cpp | |
| parent | 52b37a760c0731f6160bb07e1ab909bbf268c2a6 (diff) | |
Dependency Updates Meta PR (#2242)
* Update dll manifests
* Fixes for emit / model refresh issues
Diffstat (limited to 'src/modlistview.cpp')
| -rw-r--r-- | src/modlistview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modlistview.cpp b/src/modlistview.cpp index 8cfd8b42..7b3669fd 100644 --- a/src/modlistview.cpp +++ b/src/modlistview.cpp @@ -1078,7 +1078,8 @@ void ModListView::setOverwriteMarkers(const QModelIndexList& indexes) } } dataChanged(model()->index(0, 0), - model()->index(model()->rowCount(), model()->columnCount())); + model()->index(model()->rowCount() ? model()->rowCount() - 1 : 0, + model()->columnCount() ? model()->columnCount() - 1 : 0)); verticalScrollBar()->repaint(); } @@ -1117,7 +1118,8 @@ void ModListView::setHighlightedMods(const std::set<QString>& modNames) } } dataChanged(model()->index(0, 0), - model()->index(model()->rowCount(), model()->columnCount())); + model()->index(model()->rowCount() ? model()->rowCount() - 1 : 0, + model()->columnCount() ? model()->columnCount() - 1 : 0)); verticalScrollBar()->repaint(); } |
