Compare commits

...

3 Commits

Author SHA1 Message Date
Keith Edmunds
4714364517 Resize rows on copy/paste
Fixes #226
2024-03-27 08:47:32 +00:00
Keith Edmunds
056c66ebec Re-enable automatic Wikipedia searches 2024-03-27 08:47:32 +00:00
Keith Edmunds
9cec490855 Don't automatically show Wikipedia page (debugging #223) 2024-03-27 08:47:32 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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()