1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 13:04:23 +00:00

Remove useless exception handling

This commit is contained in:
Chocobo1 2019-01-14 07:59:34 +08:00
parent 81c09d34ad
commit cf4db1b418
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 1 additions and 15 deletions

View File

@ -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()

View File

@ -77,7 +77,7 @@ public:
Application(const QString &id, int &argc, char **argv);
~Application() override;
#if (defined(Q_OS_WIN) && !defined(DISABLE_GUI))
#if (defined(Q_OS_WIN) && !defined(DISABLE_GUI))
bool isRunning();
#endif
int exec(const QStringList &params);
@ -110,7 +110,6 @@ protected:
#ifdef Q_OS_MAC
bool event(QEvent *) override;
#endif
bool notify(QObject *receiver, QEvent *event) override;
#endif
private slots: