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

David Fuhrmann git at videolan.org
Wed Jul 23 18:58:35 CEST 2014


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

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

(cherry picked from commit b52bb8378ffc6953a7f870071756910851c2d852)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>

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

 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