mirror of https://github.com/procxx/kepka.git
fixed crash in win version
This commit is contained in:
parent
a4c13e0720
commit
276ef42c8f
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue