Second attempt at patches for an OpenBSD port, this time based off of 1.2

and after feedback from the upstream and other contributors at
https://github.com/micahflee/onionshare/pull/489
This commit is contained in:
attila 2018-02-05 18:06:37 -05:00
parent 29ad669e54
commit ae494c8e33
5 changed files with 25 additions and 18 deletions

View file

@ -35,8 +35,8 @@ class Application(QtWidgets.QApplication):
and the quick keyboard shortcut.
"""
def __init__(self):
system = platform.system()
if system == 'Linux':
system = common.get_platform()
if system == 'Linux' or system == 'BSD':
self.setAttribute(QtCore.Qt.AA_X11InitThreads, True)
QtWidgets.QApplication.__init__(self, sys.argv)
self.installEventFilter(self)