diff main/NetworkPermissionTester.cpp @ 1639:3dbfe3ba0d1f

More debug output during startup
author Chris Cannam
date Sun, 05 Mar 2017 17:14:17 +0000
parents 3f6c18fcc075
children 893f556cd5c9
line wrap: on
line diff
--- a/main/NetworkPermissionTester.cpp	Wed Mar 01 14:57:18 2017 +0000
+++ b/main/NetworkPermissionTester.cpp	Sun Mar 05 17:14:17 2017 +0000
@@ -16,6 +16,8 @@
 
 #include "../version.h"
 
+#include "base/Debug.h"
+
 #include <QWidget>
 #include <QString>
 #include <QSettings>
@@ -37,10 +39,12 @@
     bool permish = false;
 
     if (settings.contains(tag)) {
-	permish = settings.value(tag, false).toBool();
+        permish = settings.value(tag, false).toBool();
+        SVDEBUG << "NetworkPermissionTester: Asked already, result was " << permish << endl;
     } else {
+        SVDEBUG << "NetworkPermissionTester: Asking for permission" << endl;
 
-	QDialog d;
+    QDialog d;
 	d.setWindowTitle(QCoreApplication::translate("NetworkPermissionTester", "Welcome to Sonic Visualiser"));
 
 	QGridLayout *layout = new QGridLayout;
@@ -97,6 +101,8 @@
 
         permish = cb->isChecked();
 	settings.setValue(tag, permish);
+
+        SVDEBUG << "NetworkPermissionTester: asked, answer was " << permish << endl;
     }
 
     settings.endGroup();