Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit bead0302 authored by Wolfgang Bauer's avatar Wolfgang Bauer

Call the right shutdown action

Suspend and Hibernate were reversed by mistake (actually since commit
fb02810b from 2010).

Now the Suspend option really suspends, and Hibernate hibernates, as it
should be.
parent bd31daab
......@@ -1555,21 +1555,21 @@ void GenericObserver::slotAfterFinishAction()
KWorkSpace::ShutdownModeForceNow);
break;
case KGet::Hibernate: {
QDBusMessage call;
call = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.PowerManagement"),
QStringLiteral("/org/freedesktop/PowerManagement"),
QStringLiteral("org.freedesktop.PowerManagement"),
QStringLiteral("Suspend"));
QDBusConnection::sessionBus().asyncCall(call);
QDBusMessage call;
call = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.PowerManagement"),
QStringLiteral("/org/freedesktop/PowerManagement"),
QStringLiteral("org.freedesktop.PowerManagement"),
QStringLiteral("Hibernate"));
QDBusConnection::sessionBus().asyncCall(call);
break;
}
case KGet::Suspend: {
QDBusMessage call;
call = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.PowerManagement"),
QStringLiteral("/org/freedesktop/PowerManagement"),
QStringLiteral("org.freedesktop.PowerManagement"),
QStringLiteral("Hibernate"));
QDBusConnection::sessionBus().asyncCall(call);
QDBusMessage call;
call = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.PowerManagement"),
QStringLiteral("/org/freedesktop/PowerManagement"),
QStringLiteral("org.freedesktop.PowerManagement"),
QStringLiteral("Suspend"));
QDBusConnection::sessionBus().asyncCall(call);
break;
}
#endif
......
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