diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-07 19:30:54 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-07 20:16:28 -0500 |
| commit | dd5367f488de7cd312e53705ffc970a723951ca2 (patch) | |
| tree | d7110eb124e6cc77cafb99acffe8067fe9807cb0 /src/loglist.cpp | |
| parent | 08c952e53a4efcd5b50c0ec947bf216101c027ef (diff) | |
fixed AppConfig::logFileName so it can be used
refactored MOApplication so everything is in doOneRun()
Diffstat (limited to 'src/loglist.cpp')
| -rw-r--r-- | src/loglist.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/loglist.cpp b/src/loglist.cpp index fad4678c..8df21111 100644 --- a/src/loglist.cpp +++ b/src/loglist.cpp @@ -345,7 +345,10 @@ bool createAndMakeWritable(const std::wstring &subPath) { bool setLogDirectory(const QString& dir)
{
- const auto logFile = dir + "/logs/mo_interface.log";
+ const auto logFile =
+ dir + "/" +
+ QString::fromStdWString(AppConfig::logPath()) + "/" +
+ QString::fromStdWString(AppConfig::logFileName());
if (!createAndMakeWritable(AppConfig::logPath())) {
return false;
|
