mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-09 10:03:59 +00:00
PICARD-1580: Fixed crash when closing options window
If the options window gets closed via window controls regsitered signals are already disconnected before the hideEvent gets called.
This commit is contained in:
committed by
Philipp Wolfer
parent
abf41622f3
commit
ea701ecd4b
@@ -74,7 +74,10 @@ class TipSlider(QtWidgets.QSlider):
|
||||
def hideEvent(self, event):
|
||||
super().hideEvent(event)
|
||||
if not IS_WIN:
|
||||
self.valueChanged.disconnect(self.show_tip)
|
||||
try:
|
||||
self.valueChanged.disconnect(self.show_tip)
|
||||
except TypeError:
|
||||
pass
|
||||
|
||||
def show_tip(self, value):
|
||||
self.round_value(value)
|
||||
|
||||
Reference in New Issue
Block a user