mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix crash in history geometry update.
This commit is contained in:
@@ -4747,8 +4747,12 @@ void HistoryWidget::notify_historyItemLayoutChanged(const HistoryItem *item) {
|
||||
|
||||
void HistoryWidget::notify_handlePendingHistoryUpdate() {
|
||||
if (hasPendingResizedItems() || _updateHistoryGeometryRequired) {
|
||||
updateHistoryGeometry();
|
||||
_list->update();
|
||||
if (_list) {
|
||||
updateHistoryGeometry();
|
||||
_list->update();
|
||||
} else {
|
||||
_updateHistoryGeometryRequired = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user