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 fa6832f8 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Fix typo and build

parent cd381cb3
......@@ -204,12 +204,12 @@ void DiscoverNotifier::showRebootNotification()
notification->setTitle(i18n("Restart is required"));
notification->setText(i18n("The system needs to be restarted for the updates to take effect."));
connect(notification, &KNotification::action1Activated, this, &DiscoverNotifier::loadBackends);
connect(notification, &KNotification::action1Activated, this, &DiscoverNotifier::reboot);
notification->sendEvent();
}
void DiscoverNotifier::loadBackends()
void DiscoverNotifier::reboot()
{
QDBusInterface interface(QStringLiteral("org.kde.ksmserver"), QStringLiteral("/KSMServer"), QStringLiteral("org.kde.KSMServerInterface"), QDBusConnection::sessionBus());
interface.asyncCall(QStringLiteral("logout"), 0, 1, 2); // Options: do not ask again | reboot | force
......
......@@ -78,7 +78,6 @@ Q_SIGNALS:
private:
void showRebootNotification();
void updateStatusNotifier();
void loadBackends();
QList<BackendNotifierModule*> m_backends;
bool m_verbose;
......
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