Skip to content

Commit e254830

Browse files
committed
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.
1 parent 7fd49d0 commit e254830

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/qt/bitcoingui.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ void BitcoinGUI::createToolBars()
454454
if(walletFrame)
455455
{
456456
QToolBar *toolbar = addToolBar(tr("Tabs toolbar"));
457+
toolbar->setContextMenuPolicy(Qt::PreventContextMenu);
457458
toolbar->setMovable(false);
458459
toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
459460
toolbar->addAction(overviewAction);

0 commit comments

Comments
 (0)