Make sure the lock screen returns to the login view once a session is activated.

There was a name clash between the signal and the AccelButton.

This work has been sponsored by the City of Munich's LiMux project.

Forward port of kde-workspace ce7746b2dd1426efc627ab17ec8ea9b2eaa1d656
wilder-5.14
Felix Geyer 12 years ago committed by Felix Geyer
parent 73fe2f0a7d
commit 11aae8e8d2
  1. 6
      ksmserver/screenlocker/greeter/fallbacktheme/LockScreen.qml
  2. 14
      ksmserver/screenlocker/greeter/fallbacktheme/SessionSwitching.qml

@ -107,9 +107,9 @@ Item {
visible: false visible: false
Connections { Connections {
onCancel: returnToLogin() onSwitchingCanceled: returnToLogin()
onActivateSession: returnToLogin() onSessionActivated: returnToLogin()
onStartNewSession: returnToLogin() onNewSessionStarted: returnToLogin()
} }
} }
} }

@ -26,9 +26,9 @@ Item {
property alias switchUserSupported: sessions.switchUserSupported property alias switchUserSupported: sessions.switchUserSupported
implicitWidth: theme.mSize(theme.defaultFont).width * 55 implicitWidth: theme.mSize(theme.defaultFont).width * 55
implicitHeight: theme.mSize(theme.defaultFont).height * 25 implicitHeight: theme.mSize(theme.defaultFont).height * 25
signal activateSession() signal sessionActivated()
signal startNewSession() signal newSessionStarted()
signal cancel() signal switchingCanceled()
Sessions { Sessions {
id: sessions id: sessions
} }
@ -65,7 +65,7 @@ Item {
onClicked: userSessionsView.currentIndex = userSessionsView.indexAt(mouse.x, mouse.y) onClicked: userSessionsView.currentIndex = userSessionsView.indexAt(mouse.x, mouse.y)
onDoubleClicked: { onDoubleClicked: {
sessions.activateSession(userSessionsView.indexAt(mouse.x, mouse.y)); sessions.activateSession(userSessionsView.indexAt(mouse.x, mouse.y));
activateSession(); sessionActivated();
} }
} }
} }
@ -102,7 +102,7 @@ Item {
iconSource: "fork" iconSource: "fork"
onClicked: { onClicked: {
sessions.activateSession(userSessionsView.currentIndex); sessions.activateSession(userSessionsView.currentIndex);
activateSession(); sessionActivated();
} }
} }
AccelButton { AccelButton {
@ -112,14 +112,14 @@ Item {
visible: sessions.startNewSessionSupported visible: sessions.startNewSessionSupported
onClicked: { onClicked: {
sessions.startNewSession(); sessions.startNewSession();
startNewSession(); newSessionStarted();
} }
} }
AccelButton { AccelButton {
id: cancelSession id: cancelSession
label: i18nd("kscreenlocker_greet", "Cancel") label: i18nd("kscreenlocker_greet", "Cancel")
iconSource: "dialog-cancel" iconSource: "dialog-cancel"
onClicked: cancel() onClicked: switchingCanceled()
} }
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.horizontalCenter: userSessionsUI.horizontalCenter anchors.horizontalCenter: userSessionsUI.horizontalCenter

Loading…
Cancel
Save