Skip to content
Snippets Groups Projects
Commit b039abe9 authored by Geoffroy Couprie's avatar Geoffroy Couprie
Browse files

Don't crash if I click "cancel" in getOpenFileNames

parent e33a82db
No related branches found
No related tags found
No related merge requests found
......@@ -309,7 +309,10 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg )
i = 0;
foreach( const QString &file, files )
p_arg->psz_results[i++] = strdup( qtu( toNativeSepNoSlash( file ) ) );
p_intf->p_sys->filepath = qfu( p_arg->psz_results[i] );
if(i == 0)
p_intf->p_sys->filepath = QString::fromAscii("");
else
p_intf->p_sys->filepath = qfu( p_arg->psz_results[i] );
}
/* Callback */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment