fixed crash in win version

This commit is contained in:
John Preston 2014-11-24 11:23:39 +03:00
parent a4c13e0720
commit 276ef42c8f
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}
}