diff --git a/app/musicmuster.py b/app/musicmuster.py index e108069..d0f7c7c 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -247,6 +247,7 @@ class PreviewManager: def stop(self) -> None: mixer.music.stop() + mixer.music.unload() self.path = "" self.row_number = None self.track_id = 0 diff --git a/app/playlists.py b/app/playlists.py index 6fd16c9..b7becb5 100644 --- a/app/playlists.py +++ b/app/playlists.py @@ -646,7 +646,7 @@ class PlaylistTab(QTableView): def get_selected_row_track_info(self) -> Optional[TrackInfo]: """ - Return the track_path, track_id and row number of the selected + Return the track_id and row number of the selected row. If no row selected or selected row does not have a track, return None. """ @@ -679,8 +679,6 @@ class PlaylistTab(QTableView): def get_selected_rows(self) -> List[int]: """Return a list of model-selected row numbers sorted by row""" - log.debug("get_selected_rows() called") - # Use a set to deduplicate result (a selected row will have all # items in that row selected) result = sorted(