From 645d3a9ab9b6b3018c61710e0ae51367b55a64a7 Mon Sep 17 00:00:00 2001 From: Misha Vicha Date: Sat, 2 Aug 2025 00:48:24 +0200 Subject: [PATCH 1/1] kio-admin: Risk dialog correctly sets url theme When the "Risks of Acting as an Administrator" prompt is not accepted, the user now gets their url theme set back to `file://`. --- src/admin/workerintegration.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/admin/workerintegration.cpp b/src/admin/workerintegration.cpp index b769e8a7c..c0cc5ac83 100644 --- a/src/admin/workerintegration.cpp +++ b/src/admin/workerintegration.cpp @@ -167,6 +167,7 @@ void WorkerIntegration::toggleActAsAdmin() risksAccepted = warningDialog.exec() == KMessageDialog::PrimaryAction; if (!risksAccepted) { + url.setScheme(QStringLiteral("file")); updateActAsAdminAction(); // Uncheck the action return; } -- 2.47.3