Yet another attempt at getting OS X menu bar to show up

This commit is contained in:
Et0h 2014-11-09 13:57:05 +00:00
parent b31f75c598
commit d18fd02c96

View File

@ -473,4 +473,6 @@ class MainWindow(QtGui.QMainWindow):
self.setWindowIcon(QtGui.QIcon(self.resourcespath + "syncplay.png"))
self.setWindowFlags(self.windowFlags() & Qt.WindowCloseButtonHint & Qt.WindowMinimizeButtonHint & ~Qt.WindowContextHelpButtonHint)
self.show()
if sys.platform.startswith('darwin'):
self.setWindowFlags(self.windowFlags() & Qt.AA_DontUseNativeMenuBar)
self.setAcceptDrops(True)