[vlc-commits] macosx: Use varInherit to check for macosx-recentitems

David Fuhrmann git at videolan.org
Sun Oct 9 19:24:00 CEST 2016


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Oct  9 19:06:08 2016 +0200| [de1327e2f706e8db47b95d2b115faf1fede4c857] | committer: David Fuhrmann

macosx: Use varInherit to check for macosx-recentitems

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

 modules/gui/macosx/VLCPlaylist.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCPlaylist.m b/modules/gui/macosx/VLCPlaylist.m
index db04e5d..c4e0972 100644
--- a/modules/gui/macosx/VLCPlaylist.m
+++ b/modules/gui/macosx/VLCPlaylist.m
@@ -621,7 +621,7 @@
     }
 
     /* Recent documents menu */
-    if (url != nil && (BOOL)config_GetInt(p_playlist, "macosx-recentitems") == YES)
+    if (url != nil && var_InheritBool(getIntf(), "macosx-recentitems"))
         [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:url];
 
     return p_input;



More information about the vlc-commits mailing list