diff --git a/Common/OpenFile.cpp b/Common/OpenFile.cpp
index 8e7b16e5e38a098bbc57132eb2f3146524531675..8a1ab8940d230ecf2dbcce531289697b8cac728d 100644
--- a/Common/OpenFile.cpp
+++ b/Common/OpenFile.cpp
@@ -697,8 +697,7 @@ void OpenProject(const std::string &fileName, bool setWindowTitle)
     if(tmp[i] != fileName)
       CTX::instance()->recentFiles.push_back(tmp[i]);
   }
-  if(CTX::instance()->recentFiles.size() > 10)
-    CTX::instance()->recentFiles.resize(10);
+  CTX::instance()->recentFiles.resize(10);
 #if defined(HAVE_FLTK)
   if(FlGui::available())
     FlGui::instance()->graph[0]->fillRecentHistoryMenu();