diff options
author | Max Horn | 2008-08-03 08:05:19 +0000 |
---|---|---|
committer | Max Horn | 2008-08-03 08:05:19 +0000 |
commit | 01c50cfe1d583e2044b82e639a53d470e550888d (patch) | |
tree | a446f5c2ae39de6c00bdb9f282f5cdd75dcd3cfa | |
parent | b76f7668885ad706edc8d4a1037b663438ea5b8c (diff) | |
download | scummvm-rg350-01c50cfe1d583e2044b82e639a53d470e550888d.tar.gz scummvm-rg350-01c50cfe1d583e2044b82e639a53d470e550888d.tar.bz2 scummvm-rg350-01c50cfe1d583e2044b82e639a53d470e550888d.zip |
Proper fix for bug #2035390: Check for ConfigManager::kApplicationDomain, and also forbid targets starting with an underscore
svn-id: r33562
-rw-r--r-- | gui/launcher.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index d3c42c63fb..7cfe3943a7 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -450,7 +450,10 @@ void EditGameDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat // Write back changes made to config object String newDomain(_domainWidget->getEditString()); if (newDomain != _domain) { - if (newDomain.empty() || ConfMan.hasGameDomain(newDomain) || newDomain == "scummvm") { + if (newDomain.empty() + || newDomain.hasPrefix("_") + || newDomain == ConfigManager::kApplicationDomain + || ConfMan.hasGameDomain(newDomain)) { MessageDialog alert("This game ID is already taken. Please choose another one."); alert.runModal(); return; |