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
This commit is contained in:
Mikkel Krautz 2008-04-27 22:07:51 +00:00
parent fe36a5fc1d
commit 96e395b9dd

View File

@ -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;
}