Don't set Indicator icon source if wbIndicator is not visible to avoid a warning
authorMohammed Sameer <msameer@foolab.org>
Thu, 20 Dec 2012 23:17:56 +0000 (01:17 +0200)
committerMohammed Sameer <msameer@foolab.org>
Thu, 20 Dec 2012 23:17:56 +0000 (01:17 +0200)
qml/ImagePage.qml
qml/VideoPage.qml

index 7798966..c601fce 100644 (file)
@@ -168,7 +168,7 @@ CameraPage {
 
                         Indicator {
                                 id: wbIndicator
-                                source: "image://theme/" + Data.wbIcon(settings.imageWhiteBalance) + "-screen"
+                                source: visible ? "image://theme/" + Data.wbIcon(settings.imageWhiteBalance) + "-screen" : ""
                                 visible: settings.imageWhiteBalance != WhiteBalance.Auto
                         }
 
index fe67f17..028dbf6 100644 (file)
@@ -137,7 +137,7 @@ CameraPage {
 
                         Indicator {
                                 id: wbIndicator
-                                source: "image://theme/" + Data.wbIcon(settings.videoWhiteBalance) + "-screen"
+                                source: visible ? "image://theme/" + Data.wbIcon(settings.videoWhiteBalance) + "-screen" : ""
                                 visible: settings.videoWhiteBalance != WhiteBalance.Auto
                         }