summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp
index 7a378a1..926c65b 100644
--- a/src/dialog.cpp
+++ b/src/dialog.cpp
@@ -286,7 +286,7 @@ bool Dialog::selectSession(const QString& name) {
bool Dialog::selectSessionByUuid(const QString& name) {
QModelIndex root(ui->treeView->rootIndex());
- for (int tab = 0; tab <= TAB_COUNT; ++tab) {
+ for (int tab = 0; tab < TAB_COUNT; ++tab) {
for (int i = 0; i < model_[tab]->rowCount(root); ++i) {
QModelIndex section(model_[tab]->index(i, 0, root));
if (!section.isValid()) {