aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/config-ui
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@theqtcompany.com>2015-11-27 02:21:41 -0800
committerJake Petroules <jake.petroules@theqtcompany.com>2015-11-27 12:32:38 +0000
commit0c9e911a34810e796b04373afdf9707dd621a14a (patch)
treea87e8b3185d731c036a6b7e2477683e0666e117b /src/app/config-ui
parenta08c71b90d7dc88fd4175bb64797a43254cc14d7 (diff)
Remove Carbon API usage.
The new API has been available since 10.6 or 10.7 and the debugger indicates it simply calls through to TransformProcessType. Follows up an equivalent change in qtbase. Change-Id: I53c4bd024d2dbb1ba4fd98f2ea417eea8b7a1487 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com> Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/app/config-ui')
-rw-r--r--src/app/config-ui/fgapp.mm4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/app/config-ui/fgapp.mm b/src/app/config-ui/fgapp.mm
index 201618c6a..039256a3e 100644
--- a/src/app/config-ui/fgapp.mm
+++ b/src/app/config-ui/fgapp.mm
@@ -33,8 +33,6 @@
extern "C" void qt_osx_forceTransformProcessToForegroundApplicationAndActivate()
{
- ProcessSerialNumber psn;
- if (GetCurrentProcess(&psn) == noErr)
- TransformProcessType(&psn, kProcessTransformToForegroundApplication);
+ [[NSApplication sharedApplication] setActivationPolicy:NSApplicationActivationPolicyRegular];
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
}