Changeset View
Changeset View
Standalone View
Standalone View
kcmodule/activities/activitywidget.cpp
Context not available. | |||||
100 | m_ui->alwaysActionBox->addItem(QIcon::fromTheme("system-suspend-hibernate"), | 100 | m_ui->alwaysActionBox->addItem(QIcon::fromTheme("system-suspend-hibernate"), | ||
---|---|---|---|---|---|
101 | i18n("Hibernate"), (uint)SuspendSession::ToDiskMode); | 101 | i18n("Hibernate"), (uint)SuspendSession::ToDiskMode); | ||
102 | } | 102 | } | ||
103 | if (PowerDevil::PowerManagement::instance()->canSuspendThenHibernate()) { | ||||
104 | m_ui->alwaysActionBox->addItem(QIcon::fromTheme("system-suspend-hibernate"), | ||||
105 | i18n("Suspend then Hibernate"), (uint)SuspendSession::SuspendThenHibernateMode); | ||||
106 | } | ||||
103 | m_ui->alwaysActionBox->addItem(QIcon::fromTheme("system-shutdown"), i18n("Shut down"), (uint)SuspendSession::ShutdownMode); | 107 | m_ui->alwaysActionBox->addItem(QIcon::fromTheme("system-shutdown"), i18n("Shut down"), (uint)SuspendSession::ShutdownMode); | ||
104 | 108 | | |||
105 | m_ui->actLikeComboBox->clear(); | 109 | m_ui->actLikeComboBox->clear(); | ||
Context not available. |