From a865381b657c622d3f8cc8bb9894938757bb14f6 Mon Sep 17 00:00:00 2001 From: Gres Date: Thu, 9 Apr 2020 20:58:20 +0300 Subject: [PATCH] Enable trace if env variable is set --- src/manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manager.cpp b/src/manager.cpp index 523344d..423e26e 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -155,7 +155,7 @@ void Manager::setupTrace(bool isOn) if (!isOn) { debug::setTraceFileName({}); - debug::isTrace = false; + debug::isTrace = qEnvironmentVariableIsSet("TRACE"); if (!oldFile.isEmpty()) QDesktopServices::openUrl(QUrl::fromLocalFile(oldFile));