X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/d96f4c2ccb2399470f029aeb3f7957b7fe4aab06..ef4f5a3e753596396e93ba33b7e2ab5e8b53c5d8:/OldMainController.m diff --git a/OldMainController.m b/OldMainController.m index 7dc107d..aec922d 100755 --- a/OldMainController.m +++ b/OldMainController.m @@ -728,10 +728,8 @@ - (void)showPreferences:(id)sender { - if (!prefsController) { - prefsController = [[PreferencesController alloc] initWithMenuTunes:self]; - [self clearHotKeys]; - } + [[PreferencesController sharedPrefs] setController:self]; + [[PreferencesController sharedPrefs] showPrefsWindow:self]; } - (void)closePreferences @@ -739,8 +737,6 @@ if ( ( isAppRunning == ITMTRemotePlayerRunning) ) { [self setupHotKeys]; } - [prefsController release]; - prefsController = nil; }