Commit e560839e authored by Victor Yacovlev's avatar Victor Yacovlev

Win32: Log file creation only if --debug argument present

parent 8d3ffaaf
......@@ -27,7 +27,7 @@ Logger* Logger::instance()
}
}
#if defined(Q_OS_WIN32) && defined(QT_NO_DEBUG)
if (path.isEmpty()) {
if (path.isEmpty() && qApp->arguments().contains("--debug")) {
path = QDir::temp().absoluteFilePath("kumir-log.txt");
if (QFile::exists(path)) {
QFile::remove(path);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment