aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Chow <[email protected]>2017-08-27 01:08:19 -0400
committerAndrew Chow <[email protected]>2017-08-27 01:08:19 -0400
commite2548302f40ca73f990583848292965f42ecc576 (patch)
tree292dcb6b193dfe1636ce40aae3bba9b370fba184 /src
parentMerge #11151: Fix header guards using reserved identifiers (diff)
downloaddiscoin-e2548302f40ca73f990583848292965f42ecc576.tar.xz
discoin-e2548302f40ca73f990583848292965f42ecc576.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/qt/bitcoingui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp
index e3970298e..be2d21dae 100644
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -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);