mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
If a valid path is entered into the filename field, browse to it
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user