diff --git a/src/libcore/platform_darwin.mm b/src/libcore/platform_darwin.mm index bcda249d..118b2ec8 100644 --- a/src/libcore/platform_darwin.mm +++ b/src/libcore/platform_darwin.mm @@ -60,12 +60,17 @@ void __mts_init_cocoa() { } void __mts_set_appdefaults() { + if ([NSApp respondsToSelector:@selector(invalidateRestorableState)]) + [NSApp invalidateRestorableState]; +#if 0 + /* Disable annoying OSX synchronization feature. It's not supported by Qt in any case.. */ NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; if (![prefs boolForKey: @"ApplePersistenceIgnoreState"]) { [prefs setBool: YES forKey: @"ApplePersistenceIgnoreState"]; [prefs synchronize]; } +#endif } MTS_NAMESPACE_END