[vlc-commits] macosx: refresh bookmarks list when input item changes (close #11160)

David Fuhrmann git at videolan.org
Sun Jul 20 17:35:39 CEST 2014


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Jul 20 17:33:20 2014 +0200| [b52bb8378ffc6953a7f870071756910851c2d852] | committer: David Fuhrmann

macosx: refresh bookmarks list when input item changes (close #11160)

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

 modules/gui/macosx/bookmarks.h |    1 +
 modules/gui/macosx/bookmarks.m |    5 +++++
 modules/gui/macosx/intf.m      |    1 +
 3 files changed, 7 insertions(+)

diff --git a/modules/gui/macosx/bookmarks.h b/modules/gui/macosx/bookmarks.h
index 809c112..dedba7e 100644
--- a/modules/gui/macosx/bookmarks.h
+++ b/modules/gui/macosx/bookmarks.h
@@ -64,5 +64,6 @@
 - (IBAction)edit_ok:(id)sender;
 
 - (void)showBookmarks;
+- (void)refresh;
 - (id)dataTable;
 @end
diff --git a/modules/gui/macosx/bookmarks.m b/modules/gui/macosx/bookmarks.m
index a650e5a..e82479a 100644
--- a/modules/gui/macosx/bookmarks.m
+++ b/modules/gui/macosx/bookmarks.m
@@ -121,6 +121,11 @@ static VLCBookmarks *_o_sharedInstance = nil;
     [o_bookmarks_window makeKeyAndOrderFront:nil];
 }
 
+- (void)refresh
+{
+    [o_tbl_dataTable reloadData];
+}
+
 - (IBAction)add:(id)sender
 {
     /* add item to list */
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index fefe18d..649e9f9 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1297,6 +1297,7 @@ static bool f_appExit = false;
     [o_mainwindow updateWindow];
     [self updateDelays];
     [self updateMainMenu];
+    [[self bookmarks] refresh];
 
     /*
      * Due to constraints within NSAttributedString's main loop runtime handling



More information about the vlc-commits mailing list