Commit faa70346 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

PathWidget: Don't blank the field when the dialog is cancelled.

parent 46fd33ae
......@@ -71,5 +71,6 @@ PathWidget::selectPathButtonPressed()
{
QString path = QFileDialog::getExistingDirectory( NULL, tr( "Select a path" ),
m_setting->get().toString() );
m_lineEdit->setText( path );
if ( path.length() > 0 )
m_lineEdit->setText( path );
}
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