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:
parent
d61fc7e820
commit
5b59b18606
@ -134,7 +134,7 @@ int main(int argc, char *argv[])
|
||||
migrateRSS();
|
||||
#endif
|
||||
|
||||
const QBtCommandLineParameters ¶ms = app->commandLineArgs();
|
||||
const QBtCommandLineParameters params = app->commandLineArgs();
|
||||
|
||||
if (!params.unknownParameter.isEmpty()) {
|
||||
throw CommandLineParameterError(QObject::tr("%1 is an unknown command line parameter.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user