2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Fix displaying of collapsed archive row.

This commit is contained in:
John Preston
2022-11-23 22:39:20 +01:00
parent f9a14fc6bc
commit 116a598508
2 changed files with 4 additions and 2 deletions

View File

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