diff options
author | ritsuka <[email protected]> | 2015-01-22 10:47:23 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-01-22 10:47:23 +0000 |
commit | a6336a4841332056a538c4488ca7a410b6444ec7 (patch) | |
tree | d5f48f7a287add23cfdf1aaee5f7a10d860bb018 /macosx/HBAppDelegate.m | |
parent | 2c6880d133a3cd720369bc9164609dab645ba23f (diff) |
MacGui: center the prefs window in the showWindow: method.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6786 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAppDelegate.m')
-rw-r--r-- | macosx/HBAppDelegate.m | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/macosx/HBAppDelegate.m b/macosx/HBAppDelegate.m index 868f4ef40..77adfd857 100644 --- a/macosx/HBAppDelegate.m +++ b/macosx/HBAppDelegate.m @@ -419,13 +419,7 @@ static void hb_error_handler(const char *errmsg) _preferencesController = [[HBPreferencesController alloc] init]; } - NSWindow *window = [_preferencesController window]; - if (![window isVisible]) - { - [window center]; - } - - [window makeKeyAndOrderFront:nil]; + [self.preferencesController showWindow:self]; } /** |