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