aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeEngine.cpp3
-rw-r--r--gui/launcher.cpp10
2 files changed, 10 insertions, 3 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index 78353a05de..ac209d60a2 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -1449,6 +1449,9 @@ void ThemeEngine::drawDialogBackgroundClip(const Common::Rect &r, const Common::
case kDialogBackgroundDefault:
queueDDClip(kDDDefaultBackground, r, clip);
break;
+ case kDialogBackgroundNone:
+ // no op
+ break;
}
}
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index d1a226fe57..50f060de65 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -333,9 +333,13 @@ void LauncherDialog::addGame() {
String bannedDirectory = CloudMan.getDownloadLocalDirectory();
if (selectedDirectory.size() && selectedDirectory.lastChar() != '/' && selectedDirectory.lastChar() != '\\')
selectedDirectory += '/';
- if (bannedDirectory.size() && bannedDirectory.lastChar() != '/' && bannedDirectory.lastChar() != '\\')
- if (selectedDirectory.size()) bannedDirectory += selectedDirectory.lastChar();
- else bannedDirectory += '/';
+ if (bannedDirectory.size() && bannedDirectory.lastChar() != '/' && bannedDirectory.lastChar() != '\\') {
+ if (selectedDirectory.size()) {
+ bannedDirectory += selectedDirectory.lastChar();
+ } else {
+ bannedDirectory += '/';
+ }
+ }
if (selectedDirectory.equalsIgnoreCase(bannedDirectory)) {
MessageDialog alert(_("This directory cannot be used yet, it is being downloaded into!"));
alert.runModal();