mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
merge bitcoin-core/gui#219: Prevent the main window popup menu
This commit is contained in:
parent
7774bdb423
commit
dc9b25e04c
@ -95,6 +95,8 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const NetworkStyle* networkStyle,
|
||||
move(QGuiApplication::primaryScreen()->availableGeometry().center() - frameGeometry().center());
|
||||
}
|
||||
|
||||
setContextMenuPolicy(Qt::PreventContextMenu);
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
enableWallet = WalletModel::isWalletEnabled();
|
||||
#endif // ENABLE_WALLET
|
||||
@ -669,7 +671,6 @@ void BitcoinGUI::createToolBars()
|
||||
{
|
||||
QToolBar *toolbar = new QToolBar(tr("Tabs toolbar"));
|
||||
appToolBar = toolbar;
|
||||
toolbar->setContextMenuPolicy(Qt::PreventContextMenu);
|
||||
toolbar->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
toolbar->setToolButtonStyle(Qt::ToolButtonTextOnly);
|
||||
toolbar->setMovable(false); // remove unused icon in upper left corner
|
||||
|
Loading…
Reference in New Issue
Block a user