Bug 486329

Summary: kdialog --slider exit code when pressing OK is 1 (error)
Product: [Applications] kdialog Reporter: Oded Arbel <oded>
Component: generalAssignee: Brad Hards <bradh>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 24.02.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Oded Arbel 2024-04-30 08:08:39 UTC
SUMMARY
When using the KDialog slider function, if the user clicks "OK", the exit code from the process is 1 (which indicates an error) but when clicking "Cancel" the exit code is 0 (which normally indicates successful completion in UNIX).

Other functions I've tested - such as the input box function - behave as expected with "OK" producing a 0 exit code, and "Cancel" producing an exit code of 1.

STEPS TO REPRODUCE
1. In your terminal run  `kdialog --slider "Test" "1" "10" "1" && echo OK || echo Cancel`
2. In the dialog box that pops up, press "OK"

OBSERVED RESULT
The terminal output says "Cancel"

EXPECTED RESULT
The terminal output should say "OK"

SOFTWARE/OS VERSIONS
Operating System: KDE neon Testing Edition
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-27-generic (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Comment 1 Bug Janitor Service 2024-04-30 08:33:22 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kdialog/-/merge_requests/39