Commit a92d98f6 authored by Rémi Duraffort's avatar Rémi Duraffort

Qt4: simplifications.

parent 9df363f7
...@@ -274,7 +274,7 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg ) ...@@ -274,7 +274,7 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg )
else else
extensions.replace( i, 1, "(" ); extensions.replace( i, 1, "(" );
} }
extensions.replace(QString(";*"), QString(" *")); extensions.replace( ";*", " *" );
extensions.append( ")" ); extensions.append( ")" );
/* Save */ /* Save */
...@@ -386,7 +386,7 @@ QStringList DialogsProvider::showSimpleOpen( QString help, ...@@ -386,7 +386,7 @@ QStringList DialogsProvider::showSimpleOpen( QString help,
ADD_FILTER_SUBTITLE( fileTypes ); ADD_FILTER_SUBTITLE( fileTypes );
} }
ADD_FILTER_ALL( fileTypes ); ADD_FILTER_ALL( fileTypes );
fileTypes.replace(QString(";*"), QString(" *")); fileTypes.replace( ";*", " *");
return QFileDialog::getOpenFileNames( NULL, return QFileDialog::getOpenFileNames( NULL,
help.isEmpty() ? qtr(I_OP_SEL_FILES ) : help, help.isEmpty() ? qtr(I_OP_SEL_FILES ) : help,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment