From 08d4ee30ccabc34cba7bba1c7c02560c60101f90 Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Tue, 29 Nov 2016 11:14:59 +0100 Subject: [PATCH] fix -nolog switch Change-Id: I446f3ceeeab944963d53258d884b36723a1e8b60 --- commonlib/misc/debug.cpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/commonlib/misc/debug.cpp b/commonlib/misc/debug.cpp index 854ee3c..afab33f 100644 --- a/commonlib/misc/debug.cpp +++ b/commonlib/misc/debug.cpp @@ -40,6 +40,7 @@ void initDebug(const QString&dataDir) { if(QCoreApplication::instance()->arguments().contains("-nolog")){ qDebug()<<"-nolog argument was given, will not create a log file"; + return; } //create new log file QFileInfo appfi(qApp->applicationFilePath()); -- 1.7.2.5