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()
{
QString dir = QFileDialog::getExistingDirectory( NULL,
qtr( "Select Directory" ),
qfu( p_this->p_libvlc->psz_homedir ),
QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks );
text->text().isEmpty() ?
qfu( p_this->p_libvlc->psz_homedir ) : text->text(),
QFileDialog::ShowDirsOnly |
QFileDialog::DontResolveSymlinks );
if( dir.isNull() ) return;
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