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