[sailfish] Disabled label changes while network is loading

This commit is contained in:
Michael Käufl 2014-10-29 20:42:11 +01:00
parent 1abbd9ecc6
commit 923fe408b1
2 changed files with 3 additions and 1 deletions

View file

@ -63,6 +63,7 @@ Page {
}
MenuItem {
text: qsTr("Assign Labels")
enabled: !network.loading
onClicked: {
feedItemModel.getLabels(function(successful, errorMessage,
labels) {

View file

@ -64,13 +64,14 @@ Page {
delegate: ListItem {
id: item
width: parent.width
property var label: page.labels[index]
Switch {
id: checkbox
checked: item.label.checked
enabled: !network.loading
anchors.verticalCenter: parent.verticalCenter
property bool noAPIcall: false