mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-08 08:04:08 +02:00
Fix crash in history geometry update.
This commit is contained in:
parent
78d4f29af3
commit
6052a0de0e
1 changed files with 6 additions and 2 deletions
|
@ -4747,8 +4747,12 @@ void HistoryWidget::notify_historyItemLayoutChanged(const HistoryItem *item) {
|
||||||
|
|
||||||
void HistoryWidget::notify_handlePendingHistoryUpdate() {
|
void HistoryWidget::notify_handlePendingHistoryUpdate() {
|
||||||
if (hasPendingResizedItems() || _updateHistoryGeometryRequired) {
|
if (hasPendingResizedItems() || _updateHistoryGeometryRequired) {
|
||||||
updateHistoryGeometry();
|
if (_list) {
|
||||||
_list->update();
|
updateHistoryGeometry();
|
||||||
|
_list->update();
|
||||||
|
} else {
|
||||||
|
_updateHistoryGeometryRequired = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue