Commit 619a9295 authored by Yoann Peronneau's avatar Yoann Peronneau

* qt DirectoryConfigControl: default open in selected directory

parent 42980ccc
...@@ -294,8 +294,10 @@ void DirectoryConfigControl::updateField() ...@@ -294,8 +294,10 @@ void DirectoryConfigControl::updateField()
{ {
QString dir = QFileDialog::getExistingDirectory( NULL, QString dir = QFileDialog::getExistingDirectory( NULL,
qtr( "Select Directory" ), qtr( "Select Directory" ),
qfu( p_this->p_libvlc->psz_homedir ), text->text().isEmpty() ?
QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks ); qfu( p_this->p_libvlc->psz_homedir ) : text->text(),
QFileDialog::ShowDirsOnly |
QFileDialog::DontResolveSymlinks );
if( dir.isNull() ) return; if( dir.isNull() ) return;
text->setText( dir ); text->setText( dir );
} }
......
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