Browse Source

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.
adaptive-webui-19844
Eugene Shalygin 8 years ago
parent
commit
5b59b18606
  1. 2
      src/app/main.cpp

2
src/app/main.cpp

@ -134,7 +134,7 @@ int main(int argc, char *argv[]) @@ -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.",

Loading…
Cancel
Save