[vlc-commits] macosx: do not break prefs animation in case of double clicks on toolbar ( close #11469)

David Fuhrmann git at videolan.org
Sat May 10 13:51:42 CEST 2014


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Fri May  9 15:35:09 2014 +0200| [83a1fba44b12f93bc01cd26816d76e7cc5a0aff8] | committer: David Fuhrmann

macosx: do not break prefs animation in case of double clicks on toolbar (close #11469)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=83a1fba44b12f93bc01cd26816d76e7cc5a0aff8
---

 modules/gui/macosx/simple_prefs.m |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index 00a88b5..3ace12c 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -1088,6 +1088,9 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
     o_win_rect = [o_sprefs_win frame];
     o_view_rect = [o_new_category_view frame];
 
+    if (o_currentlyShownCategoryView == o_new_category_view)
+        return;
+
     if (o_currentlyShownCategoryView != nil) {
         /* restore our window's height, if we've shown another category previously */
         o_old_view_rect = [o_currentlyShownCategoryView frame];



More information about the vlc-commits mailing list