mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont rely on the arguments of the activated signal as they are unknown in PyQt6
This commit is contained in:
parent
e4cce88002
commit
b657953478
@ -1203,10 +1203,10 @@ class Application(QApplication):
|
|||||||
def setup_unix_signals(self):
|
def setup_unix_signals(self):
|
||||||
setup_unix_signals(self)
|
setup_unix_signals(self)
|
||||||
|
|
||||||
def signal_received(self, read_fd):
|
def signal_received(self):
|
||||||
try:
|
try:
|
||||||
os.read(read_fd, 1024)
|
os.read(self.signal_notifier.socket(), 1024)
|
||||||
except EnvironmentError:
|
except OSError:
|
||||||
return
|
return
|
||||||
self.shutdown_signal_received.emit()
|
self.shutdown_signal_received.emit()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user