Skip to content

Commit

Permalink
> adopting for qt 5.13<
Browse files Browse the repository at this point in the history
  • Loading branch information
trueromanus committed Apr 24, 2022
1 parent adda192 commit b2fcaa3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Classes/Services/releaselinkedseries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ QVariant ReleaseLinkedSeries::data(const QModelIndex &index, int role) const
}
case FirstThreeNamesRole: {
if (element->titles()->count() > 2) {
return QVariant(QStringList(element->titles()->begin(), element->titles()->begin() + 3).join(", "));
QStringList titleList;
int iterator = 0;
foreach (auto title, *element->titles()) {
if (iterator == 3) break;

titleList.append(title);
}
return QVariant(titleList.join(", "));
}
return element->titles()->join(", ");
}
Expand Down

0 comments on commit b2fcaa3

Please sign in to comment.