Disable set next track during editing

Fixes #130
This commit is contained in:
Keith Edmunds 2022-10-14 22:15:40 +01:00
parent ed2b919db4
commit 39f5374b32

View File

@ -465,6 +465,7 @@ class PlaylistTab(QTableWidget):
self.edit_cell_type = None
self.musicmuster.enable_play_next_controls()
self.musicmuster.actionSetNext.setEnabled(True)
super(PlaylistTab, self).closeEditor(editor, hint)
@ -507,6 +508,7 @@ class PlaylistTab(QTableWidget):
# Disable play controls so that keyboard input doesn't
# disturb playing
self.musicmuster.disable_play_next_controls()
self.musicmuster.actionSetNext.setEnabled(False)
# If this is a note cell, we need to remove any existing section
# timing so user can't edit that. Keep it simple: refresh text
@ -1191,11 +1193,6 @@ class PlaylistTab(QTableWidget):
# Does it delimit a section?
if section_start_plr is not None:
if note_text.endswith("-"):
log.debug(
"line 1165: "
f"self._update_note_text({section_start_plr=},"
f"self._get_section_timing_string({section_time=})"
)
self._update_note_text(
section_start_plr,
self._get_section_timing_string(section_time)
@ -1217,11 +1214,6 @@ class PlaylistTab(QTableWidget):
# Have we had a section start but not end?
if section_start_plr is not None:
log.debug(
"line 1191: "
f"self._update_note_text({section_start_plr=},"
f"self._get_section_timing_string({section_time=})"
)
self._update_note_text(
section_start_plr,
self._get_section_timing_string(section_time, no_end=True)