2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 07:56:03 +00:00

OrderedSet class done using QMap as implementation,

instead of inheriting it, fixed replies delete code.
This commit is contained in:
John Preston
2016-03-25 18:20:34 +03:00
parent cbebf9ced7
commit 559a74847b
9 changed files with 161 additions and 42 deletions

View File

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