2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Dependent items clearing done better

Fixed crash on launch if audio playback could not be started
This commit is contained in:
John Preston
2016-03-25 23:46:35 +03:00
parent 40ab82e4bd
commit 29c6b8e2d2
3 changed files with 14 additions and 11 deletions

View File

@@ -6096,11 +6096,7 @@ void HistoryMessageReply::resize(int width) const {
void HistoryMessageReply::itemRemoved(HistoryMessage *holder, HistoryItem *removed) {
if (replyToMsg == removed) {
delete _replyToVia;
_replyToVia = nullptr;
replyToMsg = nullptr;
replyToMsgId = 0;
clearData(holder);
holder->setPendingInitDimensions();
}
}