[vlc-devel] commit: macosx: when saving updates, only allow for a dir to be selected. ( Derk-Jan Hartman )

git version control git at videolan.org
Tue Sep 30 14:54:39 CEST 2008


vlc | branch: 0.9-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Tue Sep 30 14:56:00 2008 +0200| [3cba2efa0214ee199611177a63fc37d2c26cd98c] | committer: Derk-Jan Hartman 

macosx: when saving updates, only allow for a dir to be selected.

The core currently cannot handle a target name
(cherry picked from commit 6342bd65fb2062d14880febb1cdcf7ec61adff34)

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

 modules/gui/macosx/update.m |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/update.m b/modules/gui/macosx/update.m
index 88ed6bd..f596943 100644
--- a/modules/gui/macosx/update.m
+++ b/modules/gui/macosx/update.m
@@ -134,6 +134,8 @@ static VLCUpdate *_o_sharedInstance = nil;
     [saveFilePanel setRequiredFileType: @"dmg"];
     [saveFilePanel setCanSelectHiddenExtension: YES];
     [saveFilePanel setCanCreateDirectories: YES];
+    [saveFilePanel setPrompt: _NS("Save" )];
+    [saveFilePanel setNameFieldLabel: _NS("Save As:" )];
     update_release_t *p_release = update_GetRelease( p_u );
     assert( p_release );
     [saveFilePanel beginSheetForDirectory:nil file:




More information about the vlc-devel mailing list