If a valid path is entered into the filename field, browse to it

This commit is contained in:
baldurk
2018-12-06 12:46:16 +00:00
parent d450a4f2f8
commit 7194374347
@@ -807,7 +807,18 @@ void VirtualFileDialog::on_filename_keyPress(QKeyEvent *e)
}
if(matches == 0 && !text.trimmed().isEmpty())
{
idx = m_Model->indexForPath(text.trimmed());
if(idx.isValid())
{
changeCurrentDir(idx);
ui->filename->setText(QString());
return;
}
fileNotFound(text);
}
m_FileProxy->setFilterRegExp(re);
m_FileProxy->refresh();