diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-08-10 21:43:50 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-11 11:14:22 -0700 |
commit | 9f94aaf450200d1aab1dd7aff43cd8cf58de57a5 (patch) | |
tree | 247dce3dd2f39babe4d09ba47e54636c6056bdd3 /mobile-widgets | |
parent | fd498a90db622d3093bce450d3e91ef73ba8b3f3 (diff) | |
download | subsurface-9f94aaf450200d1aab1dd7aff43cd8cf58de57a5.tar.gz |
Whitespace cleanup, extra braces, and null checks
Thanks to Lubomir for the review.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index c79bf5b62..645ddd152 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1796,16 +1796,17 @@ void QMLManager::showDownloadPage(QString deviceString) } else if (deviceString.contains("mManufacturerName=ATOMIC AQUATICS") && deviceString.contains("mProductName=COBALT")) { - if (deviceString.contains("mVersion=2")) + if (deviceString.contains("mVersion=2")) { name = QString("%1;%2;%3") .arg(vendorList.indexOf("Atomic Aquatics")) .arg(productList["Atomic Aquatics"].indexOf("Cobalt 2")) .arg(connectionListModel.indexOf("USB device")); - else + } else { name = QString("%1;%2;%3") .arg(vendorList.indexOf("Atomic Aquatics")) .arg(productList["Atomic Aquatics"].indexOf("Cobalt")) .arg(connectionListModel.indexOf("USB device")); + } } else if (deviceString.contains("mVendorId=5267") && deviceString.contains("mProductId=48")) { name = QString("%1;%2;%3") |