Fix startup issues after refactor
This commit is contained in:
parent
4b104798b8
commit
424709ca74
@ -1826,7 +1826,7 @@ class DbDialog(QDialog):
|
||||
|
||||
class DownloadCSV(QDialog):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(*args, **kwargs)
|
||||
super().__init__()
|
||||
|
||||
self.ui = Ui_DateSelect()
|
||||
self.ui.setupUi(self)
|
||||
@ -1838,7 +1838,7 @@ class DownloadCSV(QDialog):
|
||||
|
||||
class SelectPlaylistDialog(QDialog):
|
||||
def __init__(self, parent=None, playlists=None, session=None):
|
||||
super().__init__(*args, **kwargs)
|
||||
super().__init__()
|
||||
|
||||
if playlists is None:
|
||||
return
|
||||
|
||||
@ -555,8 +555,12 @@ class PlaylistTab(QTableWidget):
|
||||
plr_id = self._get_playlistrow_id(row)
|
||||
plr_item = session.get(PlaylistRows, plr_id)
|
||||
item = self.item(row, note_column)
|
||||
if not plr_item or not plr_item.note or not item:
|
||||
if not item:
|
||||
return False
|
||||
if not plr_item:
|
||||
return False
|
||||
if not plr_item.note:
|
||||
plr_item.note = ''
|
||||
item.setText(plr_item.note)
|
||||
|
||||
# Connect signal so we know when cell has changed.
|
||||
@ -2043,8 +2047,8 @@ class PlaylistTab(QTableWidget):
|
||||
|
||||
_ = self._set_item_text(row, TITLE, track.title)
|
||||
_ = self._set_item_text(row, ARTIST, track.artist)
|
||||
_ = self._set_item_text(row, DURATION, track.duration)
|
||||
_ = self._set_item_text(row, BITRATE, track.bitrate)
|
||||
_ = self._set_item_text(row, DURATION, ms_to_mmss(track.duration))
|
||||
_ = self._set_item_text(row, BITRATE, str(track.bitrate))
|
||||
|
||||
self.update_display(session)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user