mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Fix crash in calls panel closing.
This commit is contained in:
@@ -646,8 +646,10 @@ void Panel::paintEvent(QPaintEvent *e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Panel::closeEvent(QCloseEvent *e) {
|
void Panel::closeEvent(QCloseEvent *e) {
|
||||||
|
if (_call) {
|
||||||
_call->hangup();
|
_call->hangup();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Panel::mousePressEvent(QMouseEvent *e) {
|
void Panel::mousePressEvent(QMouseEvent *e) {
|
||||||
auto dragArea = myrtlrect(_padding.left(), _padding.top(), st::callWidth, st::callWidth);
|
auto dragArea = myrtlrect(_padding.left(), _padding.top(), st::callWidth, st::callWidth);
|
||||||
|
Reference in New Issue
Block a user