mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Whitespace cleanup, extra braces, and null checks
Thanks to Lubomir for the review. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fd498a90db
commit
9f94aaf450
3 changed files with 16 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue