Fix network settings appearing to freeze on errors
This commit is contained in:
parent
47835e9e33
commit
b7bbe7bafb
@ -57,7 +57,7 @@ Dialog {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
z: -1
|
z: -1
|
||||||
onPressed: {
|
onPressed: {
|
||||||
print("Dialog: eating mouse press")
|
print("Dialog: eating mouse press", root.title)
|
||||||
mouse.accepted = true
|
mouse.accepted = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -85,11 +85,15 @@ SettingsPageBase {
|
|||||||
errorMessage = qsTr("The network manager is not available.")
|
errorMessage = qsTr("The network manager is not available.")
|
||||||
break;
|
break;
|
||||||
case "NetworkManagerErrorUnknownError":
|
case "NetworkManagerErrorUnknownError":
|
||||||
|
errorMessage = qsTr("An unexpected error happened.")
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
print("network config reply:", status, errorMessage)
|
||||||
|
|
||||||
var component = Qt.createComponent(Qt.resolvedUrl("../components/ErrorDialog.qml"))
|
var component = Qt.createComponent(Qt.resolvedUrl("../components/ErrorDialog.qml"))
|
||||||
var popup = component.createObject(root, {text: errorMessage, errorCode: status})
|
var popup = component.createObject(root, {text: errorMessage, errorCode: status})
|
||||||
|
popup.open();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user