mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 09:46:25 +00:00
OSX: Fixed file association (close #65)
This commit is contained in:
8
kcc.py
8
kcc.py
@@ -108,6 +108,14 @@ class QApplicationMessaging(QtWidgets.QApplication):
|
|||||||
self._memory.detach()
|
self._memory.detach()
|
||||||
self._server.close()
|
self._server.close()
|
||||||
|
|
||||||
|
def event(self, e):
|
||||||
|
if e.type() == QtCore.QEvent.FileOpen:
|
||||||
|
# noinspection PyArgumentList
|
||||||
|
self.messageFromOtherInstance.emit(bytes(e.file(), 'UTF-8'))
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return QtWidgets.QApplication.event(self, e)
|
||||||
|
|
||||||
def isRunning(self):
|
def isRunning(self):
|
||||||
return self._running
|
return self._running
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user