* modules/gui/wxwindows/preferences.cpp: windows can't have open _and_ save file...
authorGildas Bazin <gbazin@videolan.org>
Sun, 20 Jul 2003 12:22:32 +0000 (12:22 +0000)
committerGildas Bazin <gbazin@videolan.org>
Sun, 20 Jul 2003 12:22:32 +0000 (12:22 +0000)
* Makefile.am: removed INSTALL.win32 from the win32 package as it's only useful for developpers anyway.

Makefile.am
modules/gui/wxwindows/preferences.cpp

index 8e9cd65..cdf4b66 100644 (file)
@@ -464,8 +464,6 @@ package-win32:
 # Copy relevant files
        cp "$(top_builddir)/vlc$(EXEEXT)" "$(srcdir)/tmp/"
        $(STRIP) "$(srcdir)/tmp/vlc$(EXEEXT)"
-       cp "$(srcdir)/INSTALL.win32" "$(srcdir)/tmp/INSTALL.txt"
-       unix2dos "$(srcdir)/tmp/INSTALL.txt"
        for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
          do cp "$(srcdir)/$$file" "$(srcdir)/tmp/$${file}.txt" ; \
          unix2dos "$(srcdir)/tmp/$${file}.txt" ; done
index 54816de..9b31b8d 100644 (file)
@@ -2,7 +2,7 @@
  * preferences.cpp : wxWindows plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000-2001 VideoLAN
- * $Id: preferences.cpp,v 1.22 2003/06/19 12:21:53 gbazin Exp $
+ * $Id: preferences.cpp,v 1.23 2003/07/20 12:22:32 gbazin Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
@@ -1024,7 +1024,12 @@ void ConfigEvtHandler::OnCommandEvent( wxCommandEvent& event )
     if( config_data->i_config_type == CONFIG_ITEM_FILE )
     {
         wxFileDialog dialog( p_prefs_dialog, wxU(_("Open file")),
-                             wxT(""), wxT(""), wxT("*.*"), wxOPEN | wxSAVE );
+                             wxT(""), wxT(""), wxT("*.*"),
+#if defined( __WXMSW__ )
+                             wxOPEN );
+#else
+                             wxOPEN | wxSAVE );
+#endif
 
         if( dialog.ShowModal() == wxID_OK )
         {