Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Cancel" button does not cancel as expected #8

Open
Lorsoen opened this issue Oct 18, 2024 · 0 comments
Open

"Cancel" button does not cancel as expected #8

Lorsoen opened this issue Oct 18, 2024 · 0 comments

Comments

@Lorsoen
Copy link

Lorsoen commented Oct 18, 2024

During an operation with the program, a dialog box tells you the progress and allows you to cancel at anytime.

But the operation keeps rolling until the end even if you press cancel. This becomes an issue for huge batch of files, forcing you to close if from a program manager.

This seems to have something to do with qdbus and the wasCancelled but I could not find any report on the command set.
Replacing "qdbus", by qdbus6 or qdbus-qt5 didn't work.

Ok, found the reason (a really stupid one at that).
The program uses qdbus to see if the "Cancel" button has been pushed.
But there's a quirk with kdialog where the "Cancel" button also closes the dialog, thus destroying the dbus reference needed by the abort logic.

KDE/ kdialog seems to be more at fault for not letting the programs manage the qdbus by themselves, but instead "baby-holding" them.

Tested with:
EndeavourOS, Plasma 6.2, Wayland / X11
Kubuntu 24.04, Plasma 5.27, X11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant