Disable preferences toolbar context menu

The unwanted preferences context menu allowed the user to hide the
apply, cancel and restore defaults buttons.  This should stop the
menu from appearing.
This commit is contained in:
Trevor Merrifield 2013-06-08 15:22:59 -04:00
parent eaed92987f
commit 734ddd2943

View File

@ -221,6 +221,7 @@ class Preferences(QMainWindow):
self.stack.addWidget(self.scroll_area)
self.scroll_area.setWidgetResizable(True)
self.setContextMenuPolicy(Qt.NoContextMenu)
self.bar = QToolBar(self)
self.addToolBar(self.bar)
self.bar.setVisible(False)