refs #450 Changed path for log files in accordance with our new directory structure.

This commit is contained in:
Mathew Sutcliffe
2015-09-05 17:52:56 +01:00
parent f872186866
commit af3775c8ea
2 changed files with 3 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ namespace BlackMisc
m_applicationName(applicationName),
m_logPath(logPath)
{
if (!m_logPath.isEmpty()) { QDir::root().mkpath(m_logPath); }
removeOldLogFiles();
if (!m_logPath.isEmpty() && !m_logPath.endsWith('/')) { m_logPath += '/'; }
m_logFile.setFileName(getFullFileName());