Commit fe4011fd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: use open file dialog for loadfile items (fix #4247)

parent 963630ba
......@@ -345,8 +345,15 @@ FileConfigControl::FileConfigControl( vlc_object_t *_p_this,
void FileConfigControl::updateField()
{
QString file = QFileDialog::getSaveFileName( NULL,
qtr( "Select File" ), QVLCUserDir( VLC_HOME_DIR ) );
QString file;
if (p_item->i_type == CONFIG_ITEM_SAVEFILE)
file = QFileDialog::getSaveFileName( NULL, qtr( "Save File" ),
QVLCUserDir( VLC_HOME_DIR ) );
else
file = QFileDialog::getOpenFileName( NULL, qtr( "Select File" ),
QVLCUserDir( VLC_HOME_DIR ) );
if( file.isNull() ) return;
text->setText( toNativeSeparators( file ) );
}
......
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