From 96e395b9dd8eb9e1ffca79f0639bc8d9d117bbf6 Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Sun, 27 Apr 2008 22:07:51 +0000 Subject: [PATCH] Use qMacVersion() instead of Gestalt() in TextToSpeech_macx.cpp. git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1124 05730e5d-ab1b-0410-a4ac-84af385074fa --- src/mumble/TextToSpeech_macx.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/mumble/TextToSpeech_macx.cpp b/src/mumble/TextToSpeech_macx.cpp index eb9abec8a..6ccfd0fe6 100644 --- a/src/mumble/TextToSpeech_macx.cpp +++ b/src/mumble/TextToSpeech_macx.cpp @@ -118,11 +118,8 @@ TextToSpeech::TextToSpeech(QObject *) { * http://lists.apple.com/archives/speech-dev/2005/Aug/msg00000.html */ - if (Gestalt(gestaltSystemVersion, &MacVersion) != noErr) { - return; - } - - if ((MacVersion & 0xfff0) == 0x1040) { + int version = qMacVersion(); + if (version != QSysInfo::MV_Unknown && version < QSysInfo::MV_LEOPARD) { qWarning("Mac OS X 10.4 (Tiger) detected. Disabling Text-to-Speech because of a buggy implementation in 10.4."); return; }