on xenial help sign in
IndicatorsClient: us full equality checks and add space after error prefix
commit88910dbaf9d1c0dafee517705d1abce6460ce107 authorMarco Trevisan (Treviño) <mail@3v1n0.net> dateTue 14 Jun 2016, 10:32 (10 years ago) parent52308e6
2 files changed+6−6
qml/Panel/Indicators/client/IndicatorsClient.qml+3−3 qml/Panel/Indicators/client/IndicatorsList.qml+3−3
qml/Panel/Indicators/client/IndicatorsClient.qml+3−3
@@ -36,9 +36,9 @@ Rectangle {
3636 function reset() {
3737 clear();
3838 var component = Qt.createComponent("IndicatorsList.qml");
39− if (component.status != Component.Ready) {
40− if (component.status == Component.Error)
41− console.error("Error:"+ component.errorString());
39+ if (component.status !== Component.Ready) {
40+ if (component.status === Component.Error)
41+ console.error("Error: " + component.errorString());
4242
4343 return;
4444 }
qml/Panel/Indicators/client/IndicatorsList.qml+3−3
@@ -58,9 +58,9 @@ Page {
5858
5959 onClicked: {
6060 var new_page = Qt.createComponent("IndicatorRepresentation.qml");
61− if (new_page.status != Component.Ready) {
62− if (new_page.status == Component.Error)
63− console.error("Error:"+ new_page.errorString());
61+ if (new_page.status !== Component.Ready) {
62+ if (new_page.status === Component.Error)
63+ console.error("Error: " + new_page.errorString());
6464
6565 return;
6666 }