Fix crash in pre-launch logging.

Fixes #6635.
This commit is contained in:
John Preston
2019-10-03 12:37:00 +03:00
parent 4e7946d03e
commit 3779ad46ca
3 changed files with 10 additions and 3 deletions
+3 -1
View File
@@ -12,7 +12,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
namespace Ui {
void WriteLogEntry(const QString &message) {
Integration::Instance().writeLogEntry(message);
if (Integration::Exists()) {
Integration::Instance().writeLogEntry(message);
}
}
} // namespace Ui