summaryrefslogtreecommitdiffstats
path: root/src/network/access/qhttpthreaddelegate.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <[email protected]>2025-12-03 11:31:48 +0100
committerVolker Hilsheimer <[email protected]>2025-12-08 14:18:46 +0100
commit9418c280d3eab4479aedd3adb92473e0458d884c (patch)
tree19910d18fea95fa300f3365561684237081b1440 /src/network/access/qhttpthreaddelegate.cpp
parent50cc5a5d66563ca92511b1598d6ddb911be30163 (diff)
QMenu: return the triggered widget action from exec()
A QMenu executed via QMenu::exec is expected to return the QAction that was triggered to close the menu. For QWidgetActions, this case is handled explicitly in the private _q_actionTriggered slot, as the mouse event is handled by the widget, and not by the menu. However, QMenu's mouse and key event handling was the only place where the current action got updated, and written also to the "syncAction" for menus opened synchronously. As a result, QMenu::exec returned nullptr if the menu was closed by triggering a widget action. Fix this by setting the current and sync action in the code that closes the menu when a widget action gets triggered. Fixes: QTBUG-141992 Pick-to: 6.11 6.10 6.8 Change-Id: Ie506b33dab8f9bd5b6fd54fd3fc91a107cbda64f Reviewed-by: Axel Spoerl <[email protected]>
Diffstat (limited to 'src/network/access/qhttpthreaddelegate.cpp')
0 files changed, 0 insertions, 0 deletions