From 0c37eccb76eaa6642305f650e7b3875b6c0146e1 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Fri, 30 Sep 2022 15:21:13 +0100 Subject: [PATCH] Adjust row height to edited striped text --- app/playlists.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/playlists.py b/app/playlists.py index 096679f..4d8270d 100644 --- a/app/playlists.py +++ b/app/playlists.py @@ -406,7 +406,11 @@ class PlaylistTab(QTableWidget): # change cell again (metadata) self.cellChanged.disconnect(self._cell_changed) - new_text = self.item(row, column).text() + new_text = self.item(row, column).text().strip() + + # Update cell with strip()'d text + self.item(row, column).setText(new_text) + track_id = self._get_row_track_id(row) # Determin cell type changed