From 1635d4fb0265b2ee1997e9675a5c3350ff90d93d Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Sun, 14 Nov 2021 15:08:58 +0100 Subject: [PATCH] fixed #837 (empty path crashes BrowserDialog) --- src/gui/BrowserDialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/BrowserDialog.cxx b/src/gui/BrowserDialog.cxx index a4670b993..34bd94df3 100644 --- a/src/gui/BrowserDialog.cxx +++ b/src/gui/BrowserDialog.cxx @@ -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()); }