┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/admin
diff options
context:
space:
mode:
authorMisha Vicha <[email protected]>2025-08-02 00:48:24 +0200
committerMisha Vicha <[email protected]>2025-08-09 14:54:08 +0000
commit645d3a9ab9b6b3018c61710e0ae51367b55a64a7 (patch)
treee77f8439fa58e318f097921c1903a520ad69575e /src/admin
parent9df4a9309fe15a7995c76eecc5dac9a0e763961a (diff)
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://`.
Diffstat (limited to 'src/admin')
-rw-r--r--src/admin/workerintegration.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}