mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:03:57 +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 myAvatar = avatarManager ? avatarManager->getMyAvatar() : nullptr;
|
||||
|
||||
QUuid fileLoggerSessionID = myAvatar->getSessionUUID();
|
||||
if (!fileLoggerSessionID.isNull()) {
|
||||
qApp->getLogger()->setSessionID(fileLoggerSessionID);
|
||||
if (myAvatar) {
|
||||
QUuid fileLoggerSessionID = myAvatar->getSessionUUID();
|
||||
if (!fileLoggerSessionID.isNull()) {
|
||||
qApp->getLogger()->setSessionID(fileLoggerSessionID);
|
||||
}
|
||||
}
|
||||
|
||||
qApp->getLogger()->addMessage(qPrintable(logMessage + "\n"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue