From 01c50cfe1d583e2044b82e639a53d470e550888d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 3 Aug 2008 08:05:19 +0000 Subject: Proper fix for bug #2035390: Check for ConfigManager::kApplicationDomain, and also forbid targets starting with an underscore svn-id: r33562 --- gui/launcher.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gui') 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; -- cgit v1.2.3