mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-10 11:16:14 +02:00
Fixed small crash bug on exit
This commit is contained in:
parent
7b39cb7791
commit
f109a86b23
1 changed files with 6 additions and 3 deletions
|
@ -513,10 +513,13 @@ void messageHandler(QtMsgType type, const QMessageLogContext& context, const QSt
|
||||||
auto avatarManager = DependencyManager::get<AvatarManager>();
|
auto avatarManager = DependencyManager::get<AvatarManager>();
|
||||||
auto myAvatar = avatarManager ? avatarManager->getMyAvatar() : nullptr;
|
auto myAvatar = avatarManager ? avatarManager->getMyAvatar() : nullptr;
|
||||||
|
|
||||||
QUuid fileLoggerSessionID = myAvatar->getSessionUUID();
|
if (myAvatar) {
|
||||||
if (!fileLoggerSessionID.isNull()) {
|
QUuid fileLoggerSessionID = myAvatar->getSessionUUID();
|
||||||
qApp->getLogger()->setSessionID(fileLoggerSessionID);
|
if (!fileLoggerSessionID.isNull()) {
|
||||||
|
qApp->getLogger()->setSessionID(fileLoggerSessionID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
qApp->getLogger()->addMessage(qPrintable(logMessage + "\n"));
|
qApp->getLogger()->addMessage(qPrintable(logMessage + "\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue