Fix using Enter key to open folder a when we've the focus in the filename entry

This commit is contained in:
David Capello 2019-03-26 14:22:48 -03:00
parent 8ba0ea4519
commit dbae196f2d

View File

@ -481,7 +481,11 @@ again:
enter_folder = folder;
}
else if (fn.empty()) {
if (m_type != FileSelectorType::OpenMultiple) {
IFileItem* selected = m_fileList->selectedFileItem();
if (selected && selected->isBrowsable())
enter_folder = selected;
else if (m_type != FileSelectorType::OpenMultiple ||
m_fileList->selectedFileItems().empty()) {
// Show the window again
setVisible(true);
goto again;