diff options
author | Simon Rettberg | 2017-11-24 16:58:19 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-11-24 16:58:19 +0100 |
commit | db163abc2a848f595219e905de4b863a84effc01 (patch) | |
tree | 0a5da20811af2fa568d3c8fcbe332eb01186d84c /src | |
parent | Fix invalid memory access (off by one error) (diff) | |
download | vmchooser2-db163abc2a848f595219e905de4b863a84effc01.tar.gz vmchooser2-db163abc2a848f595219e905de4b863a84effc01.tar.xz vmchooser2-db163abc2a848f595219e905de4b863a84effc01.zip |
FIX EVERYWHERE
Diffstat (limited to 'src')
-rw-r--r-- | src/dialog.cpp | 2 |
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()) { |