Browse Source

Remove useless exception handling

adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
cf4db1b418
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 13
      src/app/application.cpp
  2. 1
      src/app/application.h

13
src/app/application.cpp

@ -615,19 +615,6 @@ bool Application::event(QEvent *ev) @@ -615,19 +615,6 @@ bool Application::event(QEvent *ev)
}
}
#endif // Q_OS_MAC
bool Application::notify(QObject *receiver, QEvent *event)
{
try {
return QApplication::notify(receiver, event);
}
catch (const std::exception &e) {
qCritical() << "Exception thrown:" << e.what() << ", receiver: " << receiver->objectName();
receiver->dumpObjectInfo();
}
return false;
}
#endif // DISABLE_GUI
void Application::initializeTranslation()

1
src/app/application.h

@ -110,7 +110,6 @@ protected: @@ -110,7 +110,6 @@ protected:
#ifdef Q_OS_MAC
bool event(QEvent *) override;
#endif
bool notify(QObject *receiver, QEvent *event) override;
#endif
private slots:

Loading…
Cancel
Save