Fix crash with series and issue window if the year is None. Closes #523

This commit is contained in:
Mizaki 2023-09-10 13:42:17 +01:00
parent f72c0c8224
commit c7a49b3643

View File

@ -334,7 +334,7 @@ class SeriesSelectionWindow(QtWidgets.QDialog):
title = ""
for series in self.series_list.values():
if series.id == self.series_id:
title = f"{series.name} ({series.start_year:04}) - "
title = f"{series.name} ({series.start_year:04}) - " if series.start_year else f"{series.name} - "
break
selector.setWindowTitle(title + "Select Issue")