mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
try to fix freeze on mac ui when quitting full screen mode
This commit is contained in:
parent
605ffdcdd5
commit
5f0d33c5ce
1 changed files with 12 additions and 12 deletions
|
|
@ -1043,9 +1043,9 @@ void App::setCoreStarted(bool started) {
|
|||
}
|
||||
}
|
||||
|
||||
static QObject *findParentWindow(QObject *item) {
|
||||
return !item || item->isWindowType() ? item : findParentWindow(item->parent());
|
||||
}
|
||||
// static QObject *findParentWindow(QObject *item) {
|
||||
// return !item || item->isWindowType() ? item : findParentWindow(item->parent());
|
||||
// }
|
||||
|
||||
bool App::notify(QObject *receiver, QEvent *event) {
|
||||
bool done = true;
|
||||
|
|
@ -1056,15 +1056,15 @@ bool App::notify(QObject *receiver, QEvent *event) {
|
|||
} catch (...) {
|
||||
lFatal() << log().arg("Generic exeption has been catch in notify");
|
||||
}
|
||||
if (event->type() == QEvent::MouseButtonPress) {
|
||||
auto window = findParentWindow(receiver);
|
||||
if (getMainWindow() == window) {
|
||||
auto defaultAccountCore = mAccountList->getDefaultAccountCore();
|
||||
if (defaultAccountCore && defaultAccountCore->getUnreadCallNotifications() > 0) {
|
||||
emit defaultAccountCore->lResetMissedCalls();
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (event->type() == QEvent::MouseButtonPress) {
|
||||
// auto window = findParentWindow(receiver);
|
||||
// if (getMainWindow() == window) {
|
||||
// auto defaultAccountCore = mAccountList->getDefaultAccountCore();
|
||||
// if (defaultAccountCore && defaultAccountCore->getUnreadCallNotifications() > 0) {
|
||||
// emit defaultAccountCore->lResetMissedCalls();
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
return done;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue