From 39f5374b32105b9c01859f3f0938f30705567fd4 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Fri, 14 Oct 2022 22:15:40 +0100 Subject: [PATCH] Disable set next track during editing Fixes #130 --- app/playlists.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/playlists.py b/app/playlists.py index 877af2b..9bddf29 100644 --- a/app/playlists.py +++ b/app/playlists.py @@ -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)