diff --git a/src/patch.cpp b/src/patch.cpp index 4e0460a9..177800ba 100644 --- a/src/patch.cpp +++ b/src/patch.cpp @@ -247,7 +247,7 @@ void PatchManager::revertDialog() { void PatchManager::pushRecentPath(std::string path) { auto& recent = settings::recentPatchPaths; // Remove path from recent patches (if exists) - recent.erase(std::remove(recent.begin(), recent.end(), path), recent.end()); + recent.remove(path); // Add path to top of recent patches recent.push_front(path); // Limit recent patches size