summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-24 16:58:19 +0100
committerSimon Rettberg2017-11-24 16:58:19 +0100
commitdb163abc2a848f595219e905de4b863a84effc01 (patch)
tree0a5da20811af2fa568d3c8fcbe332eb01186d84c /src
parentFix invalid memory access (off by one error) (diff)
downloadvmchooser2-db163abc2a848f595219e905de4b863a84effc01.tar.gz
vmchooser2-db163abc2a848f595219e905de4b863a84effc01.tar.xz
vmchooser2-db163abc2a848f595219e905de4b863a84effc01.zip
FIX EVERYWHERE
Diffstat (limited to 'src')
-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()) {