mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-18 04:38:29 +00:00
fix crash (Do not catch exception upon App::notify)
This commit is contained in:
parent
576b54e77b
commit
66e9da5b13
1 changed files with 1 additions and 8 deletions
|
|
@ -1242,14 +1242,7 @@ static QObject *findParentWindow(QObject *item) {
|
|||
}
|
||||
|
||||
bool App::notify(QObject *receiver, QEvent *event) {
|
||||
bool done = true;
|
||||
try {
|
||||
done = QApplication::notify(receiver, event);
|
||||
} catch (const std::exception &ex) {
|
||||
lFatal() << log().arg("Exception has been catch in notify: %1").arg(ex.what());
|
||||
} catch (...) {
|
||||
lFatal() << log().arg("Generic exeption has been catch in notify");
|
||||
}
|
||||
bool done = QApplication::notify(receiver, event);
|
||||
if (event->type() == QEvent::MouseButtonPress) {
|
||||
auto window = findParentWindow(receiver);
|
||||
if (getMainWindow() == window && mAccountList) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue