2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix build in Xcode.

This commit is contained in:
John Preston
2022-11-11 22:58:51 +04:00
parent 4c8187f623
commit 97356032ac
4 changed files with 7 additions and 4 deletions

View File

@@ -536,7 +536,8 @@ void InnerWidget::paintEvent(QPaintEvent *e) {
const auto reorderingPinned = (_aboveIndex >= 0)
&& !_pinnedRows.empty();
const auto reorderingIndex = promoted + _aboveIndex;
const auto reorderingRow = (reorderingIndex < list.size())
const auto reorderingRow = (reorderingIndex >= 0
&& reorderingIndex < list.size())
? (list.cbegin() + reorderingIndex)->get()
: nullptr;
if (reorderingRow) {