2
0
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:
John Preston
2017-05-25 03:11:59 +03:00
parent 78d4f29af3
commit 6052a0de0e

View File

@@ -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;
}
}
}