From 21ef222a7200c2baf0ab9fd448258df8f8d4586e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 3 Jun 2019 15:49:28 +0200 Subject: Remove debug spam --- src/dialog.cpp | 5 ----- 1 file changed, 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(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; -- cgit v1.2.3-55-g7522