Add debug output for vendor/product tuples

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-12-02 12:54:57 -08:00
parent 2c9beec775
commit 3f5101e8a4
2 changed files with 5 additions and 0 deletions

View file

@ -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)

View file

@ -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) {