mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +00:00
Fix crash in calls panel closing.
This commit is contained in:
@@ -646,7 +646,9 @@ void Panel::paintEvent(QPaintEvent *e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Panel::closeEvent(QCloseEvent *e) {
|
void Panel::closeEvent(QCloseEvent *e) {
|
||||||
_call->hangup();
|
if (_call) {
|
||||||
|
_call->hangup();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Panel::mousePressEvent(QMouseEvent *e) {
|
void Panel::mousePressEvent(QMouseEvent *e) {
|
||||||
|
Reference in New Issue
Block a user