Fix interface log file location
Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -170,7 +170,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 169 unmodified lines | ||
| 170 | 170 | _packetsPerSecond(0), |
| 171 | 171 | _bytesPerSecond(0), |
| 172 | 172 | _previousScriptLocation(), |
| 173 | − _logger(new FileLogger(this)), | |
| 174 | 173 | _runningScriptsWidget(new RunningScriptsWidget(_window)), |
| 175 | 174 | _runningScriptsWidgetWasVisible(false) |
| 176 | 175 | { |
| @@ -190,6 +189,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 13 unmodified lines | ||
| 190 | 189 | setOrganizationName(applicationInfo.value("organizationName").toString()); |
| 191 | 190 | setOrganizationDomain(applicationInfo.value("organizationDomain").toString()); |
| 192 | 191 | |
| 192 | + _logger = new FileLogger(this); // After setting organization name in order to get correct directory | |
| 193 | + | |
| 193 | 194 | QSettings::setDefaultFormat(QSettings::IniFormat); |
| 194 | 195 | |
| 195 | 196 | _myAvatar = _avatarManager.getMyAvatar(); |