summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Hein <hein@kde.org>2017-04-19 10:36:33 (GMT)
committerEike Hein <hein@kde.org>2017-04-19 10:36:33 (GMT)
commite34b0064d6ff787270127d261be65c3b6780b31f (patch)
treee32555879ebe68c85c29ebd293e44d2ad72af5ce
parent550860f6366cc99d3f0ff19f74fd3fc3d1bfc0ad (diff)
Fix off-by-one.
CCBUG:373075
-rw-r--r--libtaskmanager/abstractwindowtasksmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtaskmanager/abstractwindowtasksmodel.cpp b/libtaskmanager/abstractwindowtasksmodel.cpp
index 3dea226..0983011 100644
--- a/libtaskmanager/abstractwindowtasksmodel.cpp
+++ b/libtaskmanager/abstractwindowtasksmodel.cpp
@@ -41,7 +41,7 @@ AbstractWindowTasksModel::AbstractWindowTasksModel(QObject *parent)
auto screenAdded = [this](const QScreen *screen) {
connect(screen, &QScreen::geometryChanged, this,
[this]() {
- dataChanged(index(0, 0), index(rowCount(), 0), QVector<int>{ScreenGeometry});
+ dataChanged(index(0, 0), index(rowCount() - 1, 0), QVector<int>{ScreenGeometry});
}
);
};