2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix two crashes in OS X 10.6.

Disable rtl control chars (harfbuzz-ng crashes on them).
Disable creating state of not yet created top level windows.
This commit is contained in:
John Preston
2017-12-01 20:55:16 +04:00
parent 8391d43057
commit d6f7cae024
5 changed files with 20 additions and 4 deletions

View File

@@ -104,6 +104,7 @@ DBIPlatform gPlatform = dbipLinux32;
QString gPlatformString;
QUrl gUpdateURL;
bool gIsElCapitan = false;
bool gIsSnowLeopard = false;
int gOtherOnline = 0;
@@ -195,6 +196,9 @@ void InitFromCommandLine(int argc, char *argv[]) {
gIsElCapitan = true;
}
#else // OS_MAC_OLD
if (QSysInfo::macVersion() < QSysInfo::MV_10_7) {
gIsSnowLeopard = true;
}
gPlatform = dbipMacOld;
#endif // OS_MAC_OLD
#endif // Q_OS_MAC