Merge pull request #4576 from shenweip/patch-7

Ignore the difference between "\" and "/" in "recent" and "remove from recent".
This commit is contained in:
Henrik Rydgård
2013-11-23 07:45:39 -08:00
2 changed files with 15 additions and 3 deletions
+5 -1
View File
@@ -554,7 +554,11 @@ void Config::Save() {
void Config::AddRecent(const std::string &file) {
for (auto str = recentIsos.begin(); str != recentIsos.end(); str++) {
if (*str == file) {
#ifdef _WIN32
if (!strcmpIgnore(*str, file, "\\", "/")) {
#else
if (!strcmp(*str, file)) {
#endif
recentIsos.erase(str);
recentIsos.insert(recentIsos.begin(), file);
if ((int)recentIsos.size() > iMaxRecent)