mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Remove useless exception handling
This commit is contained in:
parent
81c09d34ad
commit
cf4db1b418
2 changed files with 1 additions and 15 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue