parent
056c66ebec
commit
4714364517
@ -407,7 +407,7 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
self.update_headers()
|
||||
|
||||
def clear_selection(self) -> None:
|
||||
"""Clear selected row"""
|
||||
"""Clear row selection"""
|
||||
|
||||
# Unselect any selected rows
|
||||
if self.active_tab():
|
||||
@ -1068,6 +1068,7 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
self.move_source_model.move_rows_between_playlists(
|
||||
self.move_source_rows, destination_row, to_playlist_model.playlist_id
|
||||
)
|
||||
self.active_tab().resize_rows()
|
||||
self.active_tab().clear_selection()
|
||||
|
||||
def play_next(self, position: Optional[float] = None) -> None:
|
||||
|
||||
@ -726,7 +726,6 @@ class PlaylistTab(QTableView):
|
||||
if playlist_id and playlist_id != self.playlist_id:
|
||||
return
|
||||
|
||||
# self.resizeRowsToContents()
|
||||
# Suggestion from phind.com
|
||||
def resize_row(row, count=1):
|
||||
row_count = self.source_model.rowCount()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user