GUI: Fix warnings
This commit is contained in:
parent
409dd27e76
commit
a65682a828
2 changed files with 10 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue