Commit 21a410ff authored by Bharadwaj Raju's avatar Bharadwaj Raju Committed by Jan Grulich

Fix password entry jumping to different networks with wifi scanning, by...

Fix password entry jumping to different networks with wifi scanning, by pausing the scan when appropriate
parent 6d9e5e17
......@@ -184,12 +184,17 @@ PlasmaExtras.ExpandableListItem {
onAccepted: {
stateChangeButton.trigger()
connectionItem.customExpandedViewContent = detailsComponent
scanTimer.running = true
}
onAcceptableInputChanged: {
stateChangeButton.enabled = acceptableInput
}
onActiveFocusChanged: {
scanTimer.running = !activeFocus
}
Component.onCompleted: {
stateChangeButton.enabled = false
passwordField.forceActiveFocus()
......@@ -302,8 +307,9 @@ PlasmaExtras.ExpandableListItem {
}
// Re-activate the default button if the password field is hidden without
// sending a password
// sending a password, and start the scan timer
onItemCollapsed: {
stateChangeButton.enabled = true;
scanTimer.running = true;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment