Commit 2e6878a3 authored by Nate Graham's avatar Nate Graham 🔩

[Applet] Fix connecting with a password

Summary:
I could have sworn that I tested this during the initial ExpandableListItem port, but
the code change required to fix it suggests that I either did not, or was smoking crack
at the time. Sorry about the breakage.

Test Plan:
Entering a password in the password field and hit return; password is sent and it tries
to connect

Reviewers: jgrulich, nicolasfella, #plasma

Reviewed By: jgrulich

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D28881
parent e527a2f0
......@@ -226,13 +226,13 @@ PlasmaExtras.ExpandableListItem {
}
function changeState() {
if (Uuid || !predictableWirelessPassword || passwordDialogComponent.visible) {
if (Uuid || !predictableWirelessPassword || connectionItem.customExpandedViewContent == passwordDialogComponent) {
if (ConnectionState == PlasmaNM.Enums.Deactivated) {
if (!predictableWirelessPassword && !Uuid) {
handler.addAndActivateConnection(DevicePath, SpecificPath)
} else if (passwordDialogComponent.visible) {
if (connectionItem.customExpandedViewContent.item.password != "") {
handler.addAndActivateConnection(DevicePath, SpecificPath, connectionItem.customExpandedViewContent.item.password)
} else if (connectionItem.customExpandedViewContent == passwordDialogComponent) {
if (passwordDialogComponent.password != "") {
handler.addAndActivateConnection(DevicePath, SpecificPath, passwordDialogComponent.password)
connectionItem.customExpandedViewContent = detailsComponent
connectionItem.collapse()
} else {
......
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