Skip to content

Conversation

@achow101
Copy link
Member

Adds a contextMenuPolicy of Qt::PreventContextMenu to prevent the tabs toolbar from showing a context menu that allows it to be hidden.

Fixes #11168

Adds a contextMenuPolicy of Qt::PreventContextMenu to prevent the
tabs toolbar from showing a context menu that allows it to be
hidden.
@fanquake fanquake added the GUI label Aug 27, 2017
@meshcollider
Copy link
Contributor

meshcollider commented Aug 27, 2017

Trivial utACK e254830, makes a lot of sense. Travis failure is with p2p-segwit, not related

@sipa
Copy link
Member

sipa commented Aug 27, 2017

Concept ACK

1 similar comment
@maflcko
Copy link
Member

maflcko commented Aug 27, 2017

Concept ACK

@laanwj
Copy link
Member

laanwj commented Aug 28, 2017

Tested ACK e254830
I'm surprised this we discover this hidden "feature" only now.

@laanwj laanwj merged commit e254830 into bitcoin:master Aug 28, 2017
laanwj added a commit that referenced this pull request Aug 28, 2017
e254830 Make tabs toolbar no longer have a context menu (Andrew Chow)

Pull request description:

  Adds a contextMenuPolicy of Qt::PreventContextMenu to prevent the tabs toolbar from showing a context menu that allows it to be hidden.

  Fixes #11168

Tree-SHA512: 8900b3c1a891ead3c9a20dc365b436fa75f97dbe0dfa7e20ee26fd9d09f3fee6eda286b0c075ed89fe1361608ecbdd87c744e37d97a3fba62493a86dedda867b
@achow101 achow101 deleted the rm-hide-tabs branch August 29, 2017 15:27
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Sep 2, 2017
Adds a contextMenuPolicy of Qt::PreventContextMenu to prevent the
tabs toolbar from showing a context menu that allows it to be
hidden.

Github-Pull: bitcoin#11169
Rebased-From: e254830
@achow101 achow101 restored the rm-hide-tabs branch August 17, 2018 21:38
@achow101 achow101 deleted the rm-hide-tabs branch August 17, 2018 21:42
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Dec 9, 2019
… menu

e254830 Make tabs toolbar no longer have a context menu (Andrew Chow)

Pull request description:

  Adds a contextMenuPolicy of Qt::PreventContextMenu to prevent the tabs toolbar from showing a context menu that allows it to be hidden.

  Fixes bitcoin#11168

Tree-SHA512: 8900b3c1a891ead3c9a20dc365b436fa75f97dbe0dfa7e20ee26fd9d09f3fee6eda286b0c075ed89fe1361608ecbdd87c744e37d97a3fba62493a86dedda867b
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jan 2, 2020
… menu

e254830 Make tabs toolbar no longer have a context menu (Andrew Chow)

Pull request description:

  Adds a contextMenuPolicy of Qt::PreventContextMenu to prevent the tabs toolbar from showing a context menu that allows it to be hidden.

  Fixes bitcoin#11168

Tree-SHA512: 8900b3c1a891ead3c9a20dc365b436fa75f97dbe0dfa7e20ee26fd9d09f3fee6eda286b0c075ed89fe1361608ecbdd87c744e37d97a3fba62493a86dedda867b
@hebasto
Copy link
Member

hebasto commented Feb 23, 2021

The ultimate fix of #11168 is bitcoin-core/gui#219 :)

maflcko pushed a commit to bitcoin-core/gui that referenced this pull request Feb 25, 2021
ca5bd1c qt: Prevent the main window popup menu (Hennadii Stepanov)

Pull request description:

  bitcoin/bitcoin#11168 is not fixed by bitcoin/bitcoin#11169 completely, as users are allowed to right click on the menu bar:

  ![Screenshot from 2021-02-23 14-18-24](https://user-images.githubusercontent.com/32963518/108842753-699eb700-75e2-11eb-92ec-3aff9aa80bd4.png)

  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 ca5bd1c

Tree-SHA512: a654ecf7ee35bb271df039be77077c1e1f9514e332587ba8622cea18da6a5b3ae8a7eb421e404ec5993c31a2f4d028e0e456fcc01facdbf61a2bc3b1e8423982
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Feb 25, 2021
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:

  ![Screenshot from 2021-02-23 14-18-24](https://user-images.githubusercontent.com/32963518/108842753-699eb700-75e2-11eb-92ec-3aff9aa80bd4.png)

  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
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Jun 26, 2021
… menu

e254830 Make tabs toolbar no longer have a context menu (Andrew Chow)

Pull request description:

  Adds a contextMenuPolicy of Qt::PreventContextMenu to prevent the tabs toolbar from showing a context menu that allows it to be hidden.

  Fixes bitcoin#11168

Tree-SHA512: 8900b3c1a891ead3c9a20dc365b436fa75f97dbe0dfa7e20ee26fd9d09f3fee6eda286b0c075ed89fe1361608ecbdd87c744e37d97a3fba62493a86dedda867b
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Feb 22, 2022
… menu

e254830 Make tabs toolbar no longer have a context menu (Andrew Chow)

Pull request description:

  Adds a contextMenuPolicy of Qt::PreventContextMenu to prevent the tabs toolbar from showing a context menu that allows it to be hidden.

  Fixes bitcoin#11168

Tree-SHA512: 8900b3c1a891ead3c9a20dc365b436fa75f97dbe0dfa7e20ee26fd9d09f3fee6eda286b0c075ed89fe1361608ecbdd87c744e37d97a3fba62493a86dedda867b
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GUI] Tabs Toolbar menu option makes tabs disappear for the session

7 participants