Commit ef7c7e95 authored by Yoann Peronneau's avatar Yoann Peronneau

* open file widget: do nothing if the user clicked on cancel

parent 5dfbca91
...@@ -258,8 +258,10 @@ FileConfigControl::FileConfigControl( vlc_object_t *_p_this, ...@@ -258,8 +258,10 @@ FileConfigControl::FileConfigControl( vlc_object_t *_p_this,
void FileConfigControl::updateField() void FileConfigControl::updateField()
{ {
text->setText( QFileDialog::getOpenFileName( NULL, QString file = QFileDialog::getOpenFileName( NULL,
qtr( "Select File" ), qfu( p_this->p_libvlc->psz_homedir ) ) ); qtr( "Select File" ), qfu( p_this->p_libvlc->psz_homedir ) );
if( file.isNull() ) return;
text->setText( file );
} }
void FileConfigControl::finish() void FileConfigControl::finish()
......
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