diff options
| author | Misha Vicha <[email protected]> | 2025-08-02 00:48:24 +0200 |
|---|---|---|
| committer | Misha Vicha <[email protected]> | 2025-08-09 14:54:08 +0000 |
| commit | 645d3a9ab9b6b3018c61710e0ae51367b55a64a7 (patch) | |
| tree | e77f8439fa58e318f097921c1903a520ad69575e /src | |
| parent | 9df4a9309fe15a7995c76eecc5dac9a0e763961a (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')
| -rw-r--r-- | src/admin/workerintegration.cpp | 1 |
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; } |
