]> git.sesse.net Git - vlc/commitdiff
macosx: refresh bookmarks list when input item changes (close #11160)
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 20 Jul 2014 15:33:20 +0000 (17:33 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 20 Jul 2014 15:35:32 +0000 (17:35 +0200)
modules/gui/macosx/bookmarks.h
modules/gui/macosx/bookmarks.m
modules/gui/macosx/intf.m

index 809c112bf913356571398e576efad8faaa8f4d54..dedba7eeced075ff1c3dc232b5594132524b9f1f 100644 (file)
@@ -64,5 +64,6 @@
 - (IBAction)edit_ok:(id)sender;
 
 - (void)showBookmarks;
+- (void)refresh;
 - (id)dataTable;
 @end
index a650e5aa8a1416fc33b0d96878e1f82d21c3d584..e82479a20637dfaabb2fcbe35d357d2dfe0daf4a 100644 (file)
@@ -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 */
index fefe18df33db7262ab7b321de6d2b1d7bbc110c3..649e9f9b0952b445d4d0da8278ba48b20f945898 100644 (file)
@@ -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