summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2019-06-03 15:49:28 +0200
committerSimon Rettberg2019-06-03 15:49:28 +0200
commit21ef222a7200c2baf0ab9fd448258df8f8d4586e (patch)
tree65bdc1b796cdf1af52c4b69151b7b1af728682eb /src
parentRefactor user .ini class, support "recent VMs" tab, misc. cleanup (diff)
downloadvmchooser2-21ef222a7200c2baf0ab9fd448258df8f8d4586e.tar.gz
vmchooser2-21ef222a7200c2baf0ab9fd448258df8f8d4586e.tar.xz
vmchooser2-21ef222a7200c2baf0ab9fd448258df8f8d4586e.zip
Remove debug spam
Diffstat (limited to 'src')
-rw-r--r--src/dialog.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp
index 8a9a79e..08af827 100644
--- a/src/dialog.cpp
+++ b/src/dialog.cpp
@@ -286,18 +286,14 @@ bool Dialog::selectSession(const QString& name, int preferredTab) {
int bestTab = -1;
QModelIndex bestIndex;
for (int tab = TAB_COUNT - 1; tab >= 0; --tab) {
- qDebug() << "bestTab:" << bestTab << "preferred:" << preferredTab << "current:" << tab;
if (bestTab != -1 && preferredTab != tab) // We already have a potential match, only keep going if this is the desired tab
continue;
- qDebug() << "checking...";
for (int i = 0; i < model_[tab]->rowCount(root); ++i) {
QModelIndex section(model_[tab]->index(i, 0, root));
- qDebug() << "Section" << section << "valid:" << section.isValid();
if (!section.isValid())
continue;
for (int j = 0; j < model_[tab]->rowCount(section); ++j) {
QModelIndex index(model_[tab]->index(j, 0, section));
- qDebug() << "Item" << index << "valid:" << index.isValid();
if (!index.isValid())
continue;
SessionTreeItem* item = static_cast<SessionTreeItem*>(index.internalPointer());
@@ -305,7 +301,6 @@ bool Dialog::selectSession(const QString& name, int preferredTab) {
if (s == nullptr) {
continue;
}
- qDebug() << "Checking session" << s->shortDescription();
if ((!s->uuid().isEmpty() && s->uuid() == name) || s->shortDescription() == name) {
bestTab = tab;
bestIndex = index;