Skip to content

Commit

Permalink
Fix crash in calls panel closing.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed May 15, 2017
1 parent 0b77c0b commit 8a60658
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Telegram/SourceFiles/calls/calls_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,9 @@ void Panel::paintEvent(QPaintEvent *e) {
}

void Panel::closeEvent(QCloseEvent *e) {
_call->hangup();
if (_call) {
_call->hangup();
}
}

void Panel::mousePressEvent(QMouseEvent *e) {
Expand Down

0 comments on commit 8a60658

Please sign in to comment.