[vlc-devel] commit: while I'm at it: don' t crash either if I select something in getOpenFileNames (Geoffroy Couprie )

git version control git at videolan.org
Sat Dec 26 16:24:31 CET 2009


vlc | branch: master | Geoffroy Couprie <geal at videolan.org> | Fri Dec 25 16:25:54 2009 +0100| [2bdc3570c0881f2751456c4fdf114a3be61f6dda] | committer: Geoffroy Couprie 

while I'm at it: don't crash either if I select something in getOpenFileNames

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

 modules/gui/qt4/dialogs_provider.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp
index b1d9e22..3c68d30 100644
--- a/modules/gui/qt4/dialogs_provider.cpp
+++ b/modules/gui/qt4/dialogs_provider.cpp
@@ -312,7 +312,7 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg )
         if(i == 0)
             p_intf->p_sys->filepath = QString::fromAscii("");
         else
-            p_intf->p_sys->filepath = qfu( p_arg->psz_results[i] );
+            p_intf->p_sys->filepath = qfu( p_arg->psz_results[i-1] );
     }
 
     /* Callback */




More information about the vlc-devel mailing list