mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 18:04:32 +00:00
Remove useless exception handling
This commit is contained in:
parent
81c09d34ad
commit
cf4db1b418
@ -615,19 +615,6 @@ bool Application::event(QEvent *ev)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // Q_OS_MAC
|
#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
|
#endif // DISABLE_GUI
|
||||||
|
|
||||||
void Application::initializeTranslation()
|
void Application::initializeTranslation()
|
||||||
|
@ -77,7 +77,7 @@ public:
|
|||||||
Application(const QString &id, int &argc, char **argv);
|
Application(const QString &id, int &argc, char **argv);
|
||||||
~Application() override;
|
~Application() override;
|
||||||
|
|
||||||
#if (defined(Q_OS_WIN) && !defined(DISABLE_GUI))
|
#if (defined(Q_OS_WIN) && !defined(DISABLE_GUI))
|
||||||
bool isRunning();
|
bool isRunning();
|
||||||
#endif
|
#endif
|
||||||
int exec(const QStringList ¶ms);
|
int exec(const QStringList ¶ms);
|
||||||
@ -110,7 +110,6 @@ protected:
|
|||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
bool event(QEvent *) override;
|
bool event(QEvent *) override;
|
||||||
#endif
|
#endif
|
||||||
bool notify(QObject *receiver, QEvent *event) override;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user