[vlc-commits] macosx/playlist: replaced deprecated API call

Felix Paul Kühne git at videolan.org
Thu Aug 23 12:17:35 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Aug 23 12:11:12 2012 +0200| [9708e54314073f04375f4564b0d29b1a581b70b2] | committer: Felix Paul Kühne

macosx/playlist: replaced deprecated API call

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

 modules/gui/macosx/playlist.m |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index a5214da..29422dd 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -760,9 +760,9 @@
     [o_save_panel setTitle: _NS("Save Playlist")];
     [o_save_panel setPrompt: _NS("Save")];
     [o_save_panel setAccessoryView: o_save_accessory_view];
+    [o_save_panel setNameFieldStringValue: o_name];
 
-    if( [o_save_panel runModalForDirectory: nil
-            file: o_name] == NSOKButton )
+    if( [o_save_panel runModal] == NSFileHandlingPanelOKButton )
     {
         NSString *o_filename = [[o_save_panel URL] path];
 



More information about the vlc-commits mailing list