mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
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:
parent
fe36a5fc1d
commit
96e395b9dd
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user