Skip to content

Commit

Permalink
library/basesqltablemodel: Return empty QVariant for invalid colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Mar 10, 2020
1 parent c354d1c commit 5e966ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/library/basesqltablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,8 @@ QVariant BaseSqlTableModel::data(const QModelIndex& index, int role) const {
if (color.isValid()) {
color.setAlpha(kTrackColorRowBackgroundOpacity);
value = QBrush(color);
} else {
value = QVariant();
}
break;
}
Expand Down

0 comments on commit 5e966ee

Please sign in to comment.