QT: Only set if hasattr(QtCore.Qt, "AA_ShareOpenGLContexts")
If the attribute does not exist (presumably in older versions of Qt), this change prevents the following error: AttributeError: type object 'Qt' has no attribute 'AA_ShareOpenGLContexts'
This commit is contained in:
parent
c8e67e2bd0
commit
34256c16f8
|
@ -92,7 +92,8 @@ class ElectrumGui:
|
|||
#network.add_jobs([DebugMem([Abstract_Wallet, SPV, Synchronizer,
|
||||
# ElectrumWindow], interval=5)])
|
||||
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_X11InitThreads)
|
||||
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_ShareOpenGLContexts)
|
||||
if hasattr(QtCore.Qt, "AA_ShareOpenGLContexts"):
|
||||
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_ShareOpenGLContexts)
|
||||
self.config = config
|
||||
self.daemon = daemon
|
||||
self.plugins = plugins
|
||||
|
|
Loading…
Reference in New Issue