diff --git a/sources/main.cpp b/sources/main.cpp index cae53fc71..039201e8f 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -109,8 +109,8 @@ void myMessageOutput(QtMsgType type, txt+= context.function ? context.function : ""; txt+=")\n"; } - QFile outFile(QDir::homePath() - +"/.qet/" + QFile outFile(QETApp::configDir() + +"/" +QDate::currentDate().toString("yyyyMMdd") +".log"); if(outFile.open(QIODevice::WriteOnly | QIODevice::Append)) @@ -129,7 +129,7 @@ void myMessageOutput(QtMsgType type, void delete_old_log_files(int days) { const QDate today = QDate::currentDate(); - const QString path = QDir::homePath() + "/.qet/"; + const QString path = QETApp::configDir() + "/"; QString filter("%1%1%1%1%1%1%1%1.log"); // pattern filter = filter.arg("[0123456789]"); // valid characters