mirror of https://github.com/stella-emu/stella.git
fixed #837 (empty path crashes BrowserDialog)
This commit is contained in:
parent
cb02e454aa
commit
1635d4fb02
|
@ -329,7 +329,7 @@ void BrowserDialog::updateUI(bool fileSelected)
|
|||
enable = !_selected->getText().empty();
|
||||
_okWidget->setEnabled(enable);
|
||||
|
||||
if(fileSelected && !_fileList->selected().isDirectory())
|
||||
if(fileSelected && _fileList->getList().size() && !_fileList->selected().isDirectory())
|
||||
_selected->setText(_fileList->getSelectedString());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue