Skip to content

Commit dc9b25e

Browse files
committed
merge bitcoin-core/gui#219: Prevent the main window popup menu
1 parent 7774bdb commit dc9b25e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/qt/bitcoingui.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const NetworkStyle* networkStyle,
9595
move(QGuiApplication::primaryScreen()->availableGeometry().center() - frameGeometry().center());
9696
}
9797

98+
setContextMenuPolicy(Qt::PreventContextMenu);
99+
98100
#ifdef ENABLE_WALLET
99101
enableWallet = WalletModel::isWalletEnabled();
100102
#endif // ENABLE_WALLET
@@ -669,7 +671,6 @@ void BitcoinGUI::createToolBars()
669671
{
670672
QToolBar *toolbar = new QToolBar(tr("Tabs toolbar"));
671673
appToolBar = toolbar;
672-
toolbar->setContextMenuPolicy(Qt::PreventContextMenu);
673674
toolbar->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
674675
toolbar->setToolButtonStyle(Qt::ToolButtonTextOnly);
675676
toolbar->setMovable(false); // remove unused icon in upper left corner

0 commit comments

Comments
 (0)