Skip to content

Commit

Permalink
Add default scene title to progress view, closes #648
Browse files Browse the repository at this point in the history
  • Loading branch information
zkovari committed Jul 24, 2023
1 parent 57bde5e commit 2d61219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/python/plotlyst/model/scenes_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def data(self, index: QModelIndex, role: int = Qt.ItemDataRole.DisplayRole) -> A
if self.novel.stages[index.column() - 2] == self._highlighted_stage:
return QBrush(QColor('#c1e0f7'))
if role == Qt.ItemDataRole.DisplayRole and index.column() == self.ColTitle:
return self._scene(index).title
return self._scene(index).title_or_index(self.novel)

@overrides
def flags(self, index: QModelIndex) -> Qt.ItemFlag:
Expand Down

0 comments on commit 2d61219

Please sign in to comment.