qt: Prevent the main window popup menu#219
Conversation
By default, a popup menu contains checkable entries for the toolbars and dock widgets present in the main window. This allows users to accidentally hide the toolbar.
There was a problem hiding this comment.
ACK ca5bd1c, tested on Ubuntu 20.04 Qt 5.12. Confirming that I can replicate the behavior described on master and this PR fixes it.
The question is: "Is there a use case for disabling tabs?"
I would lean towards no. To me, it doesn't make sense to allow a user to toggle the visibility of the tabs.
leonardojobim
left a comment
There was a problem hiding this comment.
tACK ca5bd1c
Tested on Ubuntu 20.04 Qt 5.12.8.
I also confirm that context menu is displayed on master branch but it does not happen on the branch of this PR.
|
Concept ACK, but I don't understand why the toolbar inherits this prohibition and other widgets (where we want a context menu) don't... |
Probably, due to the fact that |
ca5bd1c qt: Prevent the main window popup menu (Hennadii Stepanov) Pull request description: bitcoin#11168 is not fixed by bitcoin#11169 completely, as users are allowed to right click on the menu bar:  This PR moves the context menu prohibition from `QToolBar` instance to its parent `BitcoinGUI` instance, which is derived from `QMainWindow`. ACKs for top commit: jarolrod: ACK ca5bd1c, tested on Ubuntu 20.04 Qt 5.12. Confirming that I can replicate the behavior described on `master` and this `PR` fixes it. leonardojobim: tACK bitcoin-core/gui@ca5bd1c Tree-SHA512: a654ecf7ee35bb271df039be77077c1e1f9514e332587ba8622cea18da6a5b3ae8a7eb421e404ec5993c31a2f4d028e0e456fcc01facdbf61a2bc3b1e8423982
bitcoin/bitcoin#11168 is not fixed by bitcoin/bitcoin#11169 completely, as users are allowed to right click on the menu bar:
This PR moves the context menu prohibition from
QToolBarinstance to its parentBitcoinGUIinstance, which is derived fromQMainWindow.