Ignore the difference between "\" and "/" in "recent" and "remove from recent".

This commit is contained in:
shenweip committed 2013-11-18 23:42:38 +08:00
1 parent 3b40705197
commit 09636da4ba
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -554,7 +554,7 @@ void Config::Save() {
void Config::AddRecent(const std::string &file) {
for (auto str = recentIsos.begin(); str != recentIsos.end(); str++) {
if (*str == file) {
if (!strcmpIgnore(*str, file, "\\", "/")) {
recentIsos.erase(str);
recentIsos.insert(recentIsos.begin(), file);
if ((int)recentIsos.size() > iMaxRecent)