Skip to content

Commit

Permalink
GlobalShortcut: only build in the OS X-specific AXIsProcessTrustedWit…
Browse files Browse the repository at this point in the history
…hOptions check if we're on a 10.9 or newer SDK.

Fixes OS X Universal build.
  • Loading branch information
mkrautz committed Dec 12, 2015
1 parent f6b746e commit 2a31708
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mumble/GlobalShortcut.cpp
Expand Up @@ -595,9 +595,12 @@ bool GlobalShortcutConfig::eventFilter(QObject* /*object*/, QEvent *e) {

bool GlobalShortcutConfig::showWarning() const {
#ifdef Q_OS_MAC
# if MAC_OS_X_VERSION_MAX_ALLOWED >= 1090
if (QSysInfo::MacintoshVersion >= QSysInfo::MV_MAVERICKS) {
return !AXIsProcessTrustedWithOptions(NULL);
} else {
} else
# endif
{
return !QFile::exists(QLatin1String("/private/var/db/.AccessibilityAPIEnabled"));
}
#endif
Expand Down

0 comments on commit 2a31708

Please sign in to comment.