Skip to content
Permalink
Browse files

GUI: Fix invalid message when browser path was chosen empty

  • Loading branch information
antoniou79 committed Feb 10, 2020
1 parent 96912ee commit d6bbc67457b5a3251170cd39e4b870a5a93045ab
Showing with 1 addition and 1 deletion.
  1. +1 −1 gui/launcher.cpp
@@ -357,7 +357,7 @@ void LauncherDialog::addGame() {
bannedDirectory += '/';
}
}
if (selectedDirectory.equalsIgnoreCase(bannedDirectory)) {
if (selectedDirectory.size() && bannedDirectory.size() && selectedDirectory.equalsIgnoreCase(bannedDirectory)) {
MessageDialog alert(_("This directory cannot be used yet, it is being downloaded into!"));
alert.runModal();
return;

0 comments on commit d6bbc67

Please sign in to comment.
You can’t perform that action at this time.