Commit fb0c4d88 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Port away from deprecated KAuthorized::authorizeKAction()

parent 1cdc531b
......@@ -83,7 +83,7 @@ uint Interface::GetSessionIdleTime()
void Interface::Lock()
{
if (!KAuthorized::authorizeKAction(QStringLiteral("lock_screen"))) {
if (!KAuthorized::authorizeAction(QStringLiteral("lock_screen"))) {
return;
}
m_daemon->lock(calledFromDBus() ? EstablishLock::Immediate : EstablishLock::Delayed);
......
......@@ -167,7 +167,7 @@ void KSldApp::initialize()
}
// Global keys
if (KAuthorized::authorizeKAction(QStringLiteral("lock_screen"))) {
if (KAuthorized::authorizeAction(QStringLiteral("lock_screen"))) {
qDebug() << "Configuring Lock Action";
QAction *a = new QAction(this);
a->setObjectName(QStringLiteral("Lock Session"));
......
Supports Markdown
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