From 4e7b03883f2731160c036ae59fbb0c98daa22612 Mon Sep 17 00:00:00 2001 From: Kerry Ivan Kurian Date: Tue, 25 Sep 2018 15:13:26 -0700 Subject: [PATCH] Use triple equals --- .../marketplaceItemTester/MarketplaceItemTester.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/interface/resources/qml/hifi/commerce/marketplaceItemTester/MarketplaceItemTester.qml b/interface/resources/qml/hifi/commerce/marketplaceItemTester/MarketplaceItemTester.qml index a0ccf91baa..8dfb277197 100644 --- a/interface/resources/qml/hifi/commerce/marketplaceItemTester/MarketplaceItemTester.qml +++ b/interface/resources/qml/hifi/commerce/marketplaceItemTester/MarketplaceItemTester.qml @@ -132,7 +132,7 @@ Rectangle { } }, "trash": function(){ - if ("application" == assetType) { + if ("application" === assetType) { Commerce.uninstallApp(resource); } sendToScript({ @@ -176,7 +176,7 @@ Rectangle { "unknown" ] - currentIndex: (("entity or wearable" == assetType) ? + currentIndex: (("entity or wearable" === assetType) ? model.indexOf("unknown") : model.indexOf(assetType)) Component.onCompleted: { @@ -203,10 +203,10 @@ Rectangle { "unknown": hifi.glyphs.circleSlash, "wearable": hifi.glyphs.hat, } - text: (("trash" == modelData) ? + text: (("trash" === modelData) ? glyphs.trash : glyphs[comboBox.model[comboBox.currentIndex]]) - size: ("trash" == modelData) ? 22 : 30 + size: ("trash" === modelData) ? 22 : 30 color: hifi.colors.black horizontalAlignment: Text.AlignHCenter MouseArea { @@ -257,7 +257,7 @@ Rectangle { // Alas, there is nothing we can do about that so charge // ahead as though we are sure the present signal is one // we expect. - if ("load file" == currentAction) { + if ("load file" === currentAction) { Window.browseChanged.disconnect(onResourceSelected); } else if ("load url" == currentAction) { Window.promptTextChanged.disconnect(onResourceSelected);