mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 10:11:41 -05:00
Version 0.10.8: fixed Linux and old Xcode builds.
No conversion to bool in ?: operator with Flags::explicit operator bool(). Qt 5.3 QStringList::mid() returns QList<QString> with no join() method.
This commit is contained in:
parent
3d9e0030c5
commit
0479b214da
2 changed files with 8 additions and 2 deletions
|
@ -8145,7 +8145,13 @@ bool HistoryService::prepareGameScoreText(const QString &from, QString *outText,
|
|||
second = MakeShared<ReplyMarkupClickHandler>(item, i, j);
|
||||
auto parts = strData.split(',');
|
||||
t_assert(parts.size() > 2);
|
||||
return textcmdLink(2, parts.mid(2).join(','));
|
||||
QString gameTitle;
|
||||
gameTitle.reserve(strData.size() - 2);
|
||||
gameTitle.append(parts[2]);
|
||||
for (int i = 3, count = parts.size(); i != count; ++i) {
|
||||
gameTitle.append(',').append(parts[i]);
|
||||
}
|
||||
return textcmdLink(2, gameTitle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2158,7 +2158,7 @@ void StickerPanInner::updateSelected() {
|
|||
}
|
||||
for (int c = 0, l = sets.size(); c < l; ++c) {
|
||||
auto &set = sets[c];
|
||||
bool special = featured ? false : (set.flags & MTPDstickerSet::Flag::f_official);
|
||||
bool special = featured ? false : bool(set.flags & MTPDstickerSet::Flag::f_official);
|
||||
|
||||
y = ytill;
|
||||
if (featured) {
|
||||
|
|
Loading…
Add table
Reference in a new issue