Bug 486329 - kdialog --slider exit code when pressing OK is 1 (error)
Summary: kdialog --slider exit code when pressing OK is 1 (error)
Status: RESOLVED FIXED
Alias: None
Product: kdialog
Classification: Applications
Component: general (show other bugs)
Version: 24.02.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Brad Hards
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-30 08:08 UTC by Oded Arbel
Modified: 2024-05-02 15:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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