Skip to content

Commit

Permalink
Make tabs toolbar no longer have a context menu
Browse files Browse the repository at this point in the history
Adds a contextMenuPolicy of Qt::PreventContextMenu to prevent the
tabs toolbar from showing a context menu that allows it to be
hidden.
  • Loading branch information
achow101 committed Aug 27, 2017
1 parent 7fd49d0 commit e254830
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qt/bitcoingui.cpp
Expand Up @@ -454,6 +454,7 @@ void BitcoinGUI::createToolBars()
if(walletFrame)
{
QToolBar *toolbar = addToolBar(tr("Tabs toolbar"));
toolbar->setContextMenuPolicy(Qt::PreventContextMenu);
toolbar->setMovable(false);
toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
toolbar->addAction(overviewAction);
Expand Down

0 comments on commit e254830

Please sign in to comment.