]> cloud.milkyroute.net Git - dolphin.git/commit
kio-admin: Update risk dialog result check
authorMisha Vicha <waterpigcz@gmail.com>
Fri, 1 Aug 2025 13:19:53 +0000 (15:19 +0200)
committerMisha Vicha <waterpigcz@gmail.com>
Sat, 9 Aug 2025 14:54:08 +0000 (14:54 +0000)
commitbdb098c0f829d10ef0dcd587c63af65d3cf59658
tree00c71949730d227abef8bb39d8fc43cdff8350dd
parentfba76f75c4cb7d259aca26f440b7793bdabeb370
kio-admin: Update risk dialog result check

The check now correctly considers only KMessageDialog::PrimaryAction as confirmation, where before closing the window (4 isn't KMessageDialog::Cancel anymore) would pass through and still ask for the root password even when the prompt was technically cancelled.

Also now correctly uses the Enum instead of a hardcoded integer.
src/admin/workerintegration.cpp