summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-02 12:54:57 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-02 18:14:23 -0800
commit3f5101e8a434673bc6cb5cf7804cbde152dcdeab (patch)
tree3449705ecdbfbc64fe645d91ae4b6d6459fcb60a
parent2c9beec775632fde373d8ea6cc6a04e0a1355654 (diff)
downloadsubsurface-3f5101e8a434673bc6cb5cf7804cbde152dcdeab.tar.gz
Add debug output for vendor/product tuples
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--core/downloadfromdcthread.cpp1
-rw-r--r--subsurface-mobile-helper.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp
index c74d5d535..799610f80 100644
--- a/core/downloadfromdcthread.cpp
+++ b/core/downloadfromdcthread.cpp
@@ -142,6 +142,7 @@ void fill_computer_list()
productList[vendor].push_back(product);
descriptorLookup[QString(vendor) + QString(product)] = descriptor;
+ qDebug() << "added supported DC: " << vendor << " " << product;
}
dc_iterator_free(iterator);
Q_FOREACH (QString vendor, vendorList)
diff --git a/subsurface-mobile-helper.cpp b/subsurface-mobile-helper.cpp
index 98d412aca..2d72d538e 100644
--- a/subsurface-mobile-helper.cpp
+++ b/subsurface-mobile-helper.cpp
@@ -94,6 +94,10 @@ void run_ui()
ctxt->setContextProperty("connectionListModel", &connectionListModel);
ctxt->setContextProperty("logModel", MessageHandlerModel::self());
+ // call again to be able to log
+ // FIXME - this is redundant - but otherwise they don't end up in the AppLog
+ fill_computer_list();
+
engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));
qqWindowObject = engine.rootObjects().value(0);
if (!qqWindowObject) {