Merge branch 'Plasma/5.8'

wilder-5.14
Marco Martin 9 years ago
commit b47b9fcd94
  1. 2
      ksmserver/shutdowndlg.cpp
  2. 1
      lookandfeel/contents/logout/Logout.qml

@ -47,6 +47,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <KPackage/Package>
#include <KPackage/PackageLoader>
#include <KAuthorized>
#include <KIconLoader>
#include <KLocalizedString>
#include <KUser>
@ -124,6 +125,7 @@ KSMShutdownDlg::KSMShutdownDlg( QWindow* parent,
mapSpdMethods->insert(QStringLiteral("SuspendState"), QVariant::fromValue(spdMethods.contains(Solid::PowerManagement::SuspendState)));
mapSpdMethods->insert(QStringLiteral("HibernateState"), QVariant::fromValue(spdMethods.contains(Solid::PowerManagement::HibernateState)));
context->setContextProperty(QStringLiteral("spdMethods"), mapSpdMethods);
context->setContextProperty(QStringLiteral("canLogout"), KAuthorized::authorize(QStringLiteral("logout")));
QString bootManager = KConfig(QStringLiteral(KDE_CONFDIR "/kdm/kdmrc"), KConfig::SimpleConfig)
.group("Shutdown")

@ -186,6 +186,7 @@ PlasmaCore.ColorScope {
KeyNavigation.left: shutdownButton
KeyNavigation.right: suspendButton
focus: sdtype == ShutdownType.ShutdownTypeNone
visible: canLogout
}
}

Loading…
Cancel
Save