1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-05 11:24:15 +00:00

Fix crash when entering daemon mode. Closes #6759.

We stored reference to parameters object in main(), but that object gets
deleted when we reset Application object upon entering daemon mode.
Change reference to copy to fix that.
This commit is contained in:
Eugene Shalygin 2017-05-08 18:01:38 +02:00
parent d61fc7e820
commit 5b59b18606

View File

@ -134,7 +134,7 @@ int main(int argc, char *argv[])
migrateRSS();
#endif
const QBtCommandLineParameters &params = app->commandLineArgs();
const QBtCommandLineParameters params = app->commandLineArgs();
if (!params.unknownParameter.isEmpty()) {
throw CommandLineParameterError(QObject::tr("%1 is an unknown command line parameter.",