undefinded warnings--

This commit is contained in:
Marco Martin 2013-02-13 21:56:06 +01:00
parent 54f0fc4926
commit 55d23cddb6

View File

@ -59,7 +59,7 @@ Rectangle {
property alias applet: appletContainer.children
property int small: 90
property int large: root.width /2
imagePath: applet[0].backgroundHints == 0 ? "" : "widgets/background"
imagePath: applet.length > 0 && applet[0].backgroundHints == 0 ? "" : "widgets/background"
MouseArea {
anchors.fill: parent
drag.target: parent
@ -99,7 +99,7 @@ Rectangle {
}
PlasmaComponents.BusyIndicator {
z: 1000
visible: applet[0].busy
visible: applet.length > 0 && applet[0].busy
running: visible
anchors.centerIn: parent
}