Browse Source

Make tabs toolbar no longer have a context menu

Adds a contextMenuPolicy of Qt::PreventContextMenu to prevent the
tabs toolbar from showing a context menu that allows it to be
hidden.
0.16
Andrew Chow 7 years ago
parent
commit
e2548302f4
  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