Disconnect _cell_changed signal on edit abort
This commit is contained in:
parent
ebc087f1f6
commit
69d379ab10
@ -383,6 +383,13 @@ class PlaylistTab(QTableWidget):
|
||||
play controls and update display.
|
||||
"""
|
||||
|
||||
# If edit was cancelled (eg, by pressing ESC), the signal will
|
||||
# still be connected
|
||||
try:
|
||||
self.cellChanged.disconnect(self._cell_changed)
|
||||
except TypeError:
|
||||
pass
|
||||
|
||||
self.edit_cell_type = None
|
||||
self.musicmuster.enable_play_next_controls()
|
||||
self.musicmuster.actionSetNext.setEnabled(True)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user