Skip to content

Commit

Permalink
Fix crash in history geometry update.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed May 25, 2017
1 parent 78d4f29 commit 6052a0d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Telegram/SourceFiles/historywidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 6052a0d

Please sign in to comment.