mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
fixed crash in win version
This commit is contained in:
@@ -261,12 +261,14 @@ void NotifyWindow::startHiding() {
|
||||
|
||||
void NotifyWindow::mousePressEvent(QMouseEvent *e) {
|
||||
if (!history) return;
|
||||
PeerId peer = history->peer->id;
|
||||
|
||||
if (e->button() == Qt::RightButton) {
|
||||
unlinkHistoryAndNotify();
|
||||
} else if (history) {
|
||||
App::wnd()->showFromTray();
|
||||
App::wnd()->hideSettings();
|
||||
App::main()->showPeer(history->peer->id, 0, false, true);
|
||||
App::main()->showPeer(peer, 0, false, true);
|
||||
e->ignore();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user