aboutsummaryrefslogtreecommitdiff
path: root/gui/launcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r--gui/launcher.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 4748ac5468..af15d9f369 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -658,8 +658,9 @@ void LauncherDialog::addGame() {
Common::FSNode dir(_browser->getResult());
Common::FSList files;
if (!dir.getChildren(files, Common::FSNode::kListAll)) {
- error("browser returned a node that is not a directory: '%s'",
- dir.getPath().c_str());
+ MessageDialog alert("ScummVM couldn't open the specified directory!");
+ alert.runModal();
+ return;
}
// ...so let's determine a list of candidates, games that