]> git.sesse.net Git - vlc/commitdiff
while I'm at it: don't crash either if I select something in getOpenFileNames
authorGeoffroy Couprie <geal@videolan.org>
Fri, 25 Dec 2009 15:25:54 +0000 (16:25 +0100)
committerGeoffroy Couprie <geal@videolan.org>
Sat, 26 Dec 2009 15:24:07 +0000 (16:24 +0100)
modules/gui/qt4/dialogs_provider.cpp

index b1d9e22bd9623c9e6e9432b159f579c07e7716db..3c68d305a58c37a9efba75e636f5a691946c41f6 100644 (file)
@@ -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 */