From 5b59b186064c84be33ff1c8fdae7715b517fa73d Mon Sep 17 00:00:00 2001 From: Eugene Shalygin Date: Mon, 8 May 2017 18:01:38 +0200 Subject: [PATCH] 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. --- src/app/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 4e6bd186f..4484a67e6 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -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.",