Fix sometimes rows too tall after loading playlist

This commit is contained in:
Keith Edmunds 2023-12-14 18:12:00 +00:00
parent 33fdc40f66
commit bf438c3d99

View File

@ -8,6 +8,7 @@ from PyQt6.QtCore import (
QObject, QObject,
QItemSelection, QItemSelection,
Qt, Qt,
QTimer,
) )
from PyQt6.QtGui import QAction, QKeyEvent from PyQt6.QtGui import QAction, QKeyEvent
from PyQt6.QtWidgets import ( from PyQt6.QtWidgets import (
@ -204,6 +205,7 @@ class PlaylistTab(QTableView):
# Load playlist rows # Load playlist rows
self.setModel(self.proxy_model) self.setModel(self.proxy_model)
self._set_column_widths() self._set_column_widths()
QTimer.singleShot(0, lambda: self.resizeRowsToContents())
# ########## Overrident class functions ########## # ########## Overrident class functions ##########