]> cloud.milkyroute.net Git - dolphin.git/commitdiff
kio-admin: Risk dialog correctly sets url theme
authorMisha Vicha <waterpigcz@gmail.com>
Fri, 1 Aug 2025 22:48:24 +0000 (00:48 +0200)
committerMisha Vicha <waterpigcz@gmail.com>
Sat, 9 Aug 2025 14:54:08 +0000 (14:54 +0000)
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

index b769e8a7c313a3d140773ef3a38445ea62f1d373..c0cc5ac83915eb39235716ae656b87093452e5d5 100644 (file)
@@ -167,6 +167,7 @@ void WorkerIntegration::toggleActAsAdmin()
         risksAccepted = warningDialog.exec() == KMessageDialog::PrimaryAction;
 
         if (!risksAccepted) {
         risksAccepted = warningDialog.exec() == KMessageDialog::PrimaryAction;
 
         if (!risksAccepted) {
+            url.setScheme(QStringLiteral("file"));
             updateActAsAdminAction(); // Uncheck the action
             return;
         }
             updateActAsAdminAction(); // Uncheck the action
             return;
         }