diff options
author | Eugene Sandulenko | 2016-07-22 13:38:07 +0300 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | a65682a828ff0213b60b983f0957c504ec2d2ec1 (patch) | |
tree | a486e8b6fd62a6a36e860b879578ab67e51004a8 | |
parent | 409dd27e76f705941f6f702d55244d24aa06651f (diff) | |
download | scummvm-rg350-a65682a828ff0213b60b983f0957c504ec2d2ec1.tar.gz scummvm-rg350-a65682a828ff0213b60b983f0957c504ec2d2ec1.tar.bz2 scummvm-rg350-a65682a828ff0213b60b983f0957c504ec2d2ec1.zip |
GUI: Fix warnings
-rw-r--r-- | gui/ThemeEngine.cpp | 3 | ||||
-rw-r--r-- | gui/launcher.cpp | 10 |
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(); |