Skip to content

Commit

Permalink
fixed #837 (empty path crashes BrowserDialog)
Browse files Browse the repository at this point in the history
  • Loading branch information
thrust26 committed Nov 14, 2021
1 parent cb02e45 commit 1635d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/BrowserDialog.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 1635d4f

Please sign in to comment.