From a30e78140f7eea8847b0f416ca7b461491a01f35 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 23 Sep 2015 12:20:21 -0700 Subject: Hide a couple of debugging messages They are useful to show when trying to figure out what's going on, so just move them behind a check for verbose. Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 3 ++- qthelper.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 2e4d3fc9f..737cfbf04 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -785,7 +785,8 @@ void MainTab::updateDiveInfo(bool clear) else ui.cylinders->view()->hideColumn(CylindersModel::USE); - qDebug() << "Set the current dive site:" << displayed_dive.dive_site_uuid; + if (verbose) + qDebug() << "Set the current dive site:" << displayed_dive.dive_site_uuid; emit diveSiteChanged(get_dive_site_by_uuid(displayed_dive.dive_site_uuid)); } diff --git a/qthelper.cpp b/qthelper.cpp index 3a4daf833..06a6610f0 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -1376,7 +1376,8 @@ int getCloudURL(QString &filename) prefs.cloud_storage_email_encoded = strdup(qPrintable(email)); } filename = QString(QString(prefs.cloud_git_url) + "/%1[%1]").arg(email); - qDebug() << "cloud URL set as" << filename; + if (verbose) + qDebug() << "cloud URL set as" << filename; return 0; } -- cgit v1.2.3-70-g09d2