Browse Source

Merge #11169: [GUI] Make tabs toolbar no longer have a context 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 #11168

Tree-SHA512: 8900b3c1a891ead3c9a20dc365b436fa75f97dbe0dfa7e20ee26fd9d09f3fee6eda286b0c075ed89fe1361608ecbdd87c744e37d97a3fba62493a86dedda867b
0.16
Wladimir J. van der Laan 7 years ago
parent
commit
5b8af7b879
No known key found for this signature in database
GPG Key ID: 1E4AED62986CD25D
  1. 1
      src/qt/bitcoingui.cpp

1
src/qt/bitcoingui.cpp

@ -454,6 +454,7 @@ void BitcoinGUI::createToolBars()
if(walletFrame) if(walletFrame)
{ {
QToolBar *toolbar = addToolBar(tr("Tabs toolbar")); QToolBar *toolbar = addToolBar(tr("Tabs toolbar"));
toolbar->setContextMenuPolicy(Qt::PreventContextMenu);
toolbar->setMovable(false); toolbar->setMovable(false);
toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
toolbar->addAction(overviewAction); toolbar->addAction(overviewAction);

Loading…
Cancel
Save