vlc | branch: master | Felix Paul Kühne <[email protected]> | Mon May 28 15:27:42 2012 +0200| [2a39fe96a21b444f2ff24d2298ac8b36b0856402] | committer: Felix Paul Kühne
macosx: automatically close the shared NSFontPanel when closing the preferences > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2a39fe96a21b444f2ff24d2298ac8b36b0856402 --- modules/gui/macosx/simple_prefs.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m index d980590..910a4cf 100644 --- a/modules/gui/macosx/simple_prefs.m +++ b/modules/gui/macosx/simple_prefs.m @@ -743,10 +743,14 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na - (IBAction)buttonAction:(id)sender { if( sender == o_sprefs_cancel_btn ) + { + [[NSFontPanel sharedFontPanel] close]; [o_sprefs_win orderOut: sender]; + } else if( sender == o_sprefs_save_btn ) { [self saveChangedSettings]; + [[NSFontPanel sharedFontPanel] close]; [o_sprefs_win orderOut: sender]; } else if( sender == o_sprefs_reset_btn ) _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
