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

0.10.4: Same chat msg links fixed. Crash fix attempt in ScrollArea.

If the message link is opened in the same chat the ShowWay::Forward
should be ignored.

There was a possible crash in ~ScrollArea() when one of the bars
was already destroyed and the second called ScrollArea::leaveEvent.
Now both bars are ChildWidget<>s and will be destroyed in ~QWidget().
This commit is contained in:
John Preston
2016-09-03 12:35:12 -04:00
parent 3d3fc33253
commit ab18fc6478
7 changed files with 73 additions and 61 deletions

View File

@@ -2038,6 +2038,11 @@ void MainWidget::ui_showPeerHistory(quint64 peerId, qint32 showAtMsgId, Ui::Show
break;
}
}
if (auto historyPeer = _history->peer()) {
if (way == Ui::ShowWay::Forward && historyPeer->id == peerId) {
way = Ui::ShowWay::ClearStack;
}
}
}
if (back || (way == Ui::ShowWay::ClearStack)) {