https://bugs.kde.org/show_bug.cgi?id=520747

            Bug ID: 520747
           Summary: Newly added QMessageBox MessageDialog backend returns
                    wrong result on `exec`
    Classification: Plasma
           Product: plasma-integration
      Version First master
       Reported In:
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 192677
  --> https://bugs.kde.org/attachment.cgi?id=192677&action=edit
a minimal example to reproduce the issue

DESCRIPTION
The newly added MessageDialog on plasma integration (
https://invent.kde.org/plasma/plasma-integration/-/merge_requests/204 ) is not
returning the expected result when an app creates a `QMessageBox` with specific
standard buttons and calls `exec` on it

STEPS TO REPRODUCE
See attached main.cpp file for a minimal example

OBSERVED RESULT
The example logs `Value: 1 Flag: QFlags<QMessageBox::StandardButton>()` if you
click "Yes" on the dialog

EXPECTED RESULT
It should log `Value: 16384 Flag: QFlags<QMessageBox::StandardButton>(Yes)`
after clicking "Yes"

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.7.80
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Kernel Version: 6.18.33-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 4600G with Radeon Graphics
Memory: 34 GB of RAM (32.9 GB usable)
Graphics Processor: AMD Radeon Graphics

ADDITIONAL INFORMATION
This broke PrismLauncher (a popular Qt based minecraft launcher) since it calls
QMessageBox with `QMessageBox::Yes | QMessageBox::No` standard buttons and then
expects `exec` to return `QMessageBox::Yes` when accepted

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to