]> git.lyx.org Git - features.git/commit
#12818 correct evaluation of message box result info
authorStephan Witt <switt@lyx.org>
Sun, 16 Jul 2023 14:48:49 +0000 (16:48 +0200)
committerStephan Witt <switt@lyx.org>
Sun, 16 Jul 2023 14:49:02 +0000 (16:49 +0200)
commitb924db72c5bc7e194d1b6a2b0e55f0427fa366b6
tree8120c8afd61571ba9a168dc4062c5d99aecde993
parentb397c78b70fc471ca9aa8398298a2343079d5f56
#12818 correct evaluation of message box result info

The help page of int QMessageBox::exec() (​https://doc.qt.io/qt-6/qmessagebox.html#exec) says:
When using a QMessageBox with standard buttons, this function returns a StandardButton value indicating the standard button that was clicked.
When using QMessageBox with custom buttons, this function returns an opaque value; use clickedButton() to determine which button was clicked.
src/frontends/alert.h
src/frontends/qt/GuiAlert.cpp