macOS: Remove dead code for activating application on startup
We handle this in applicationDidFinishLaunching nowadays. Pick-to: 6.5 Change-Id: I447e8923fba3eac4cb0a2727f369fff21054f9a1 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> (cherry picked from commit b8879b4d2dea67d7b21e604e807095baa23c30e0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
038a209985
commit
0e10c0bde2
@ -141,16 +141,6 @@ QCocoaIntegration::QCocoaIntegration(const QStringList ¶mList)
|
|||||||
// wants to be foreground applications so change the process type. (But
|
// wants to be foreground applications so change the process type. (But
|
||||||
// see the function implementation for exceptions.)
|
// see the function implementation for exceptions.)
|
||||||
qt_mac_transformProccessToForegroundApplication();
|
qt_mac_transformProccessToForegroundApplication();
|
||||||
|
|
||||||
// Move the application window to front to make it take focus, also when launching
|
|
||||||
// from the terminal. On 10.12+ this call has been moved to applicationDidFinishLauching
|
|
||||||
// to work around issues with loss of focus at startup.
|
|
||||||
if (QOperatingSystemVersion::current() < QOperatingSystemVersion::MacOSSierra) {
|
|
||||||
// Ignoring other apps is necessary (we must ignore the terminal), but makes
|
|
||||||
// Qt apps play slightly less nice with other apps when lanching from Finder
|
|
||||||
// (See the activateIgnoringOtherApps docs.)
|
|
||||||
[cocoaApplication activateIgnoringOtherApps : YES];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Qt 4 also does not set the application delegate, so that behavior
|
// Qt 4 also does not set the application delegate, so that behavior
|
||||||
|
Loading…
x
Reference in New Issue
Block a user