Skip to content
Snippets Groups Projects
Commit af969284 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix

parent c00523e5
No related branches found
No related tags found
No related merge requests found
...@@ -697,8 +697,7 @@ void OpenProject(const std::string &fileName, bool setWindowTitle) ...@@ -697,8 +697,7 @@ void OpenProject(const std::string &fileName, bool setWindowTitle)
if(tmp[i] != fileName) if(tmp[i] != fileName)
CTX::instance()->recentFiles.push_back(tmp[i]); 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 defined(HAVE_FLTK)
if(FlGui::available()) if(FlGui::available())
FlGui::instance()->graph[0]->fillRecentHistoryMenu(); FlGui::instance()->graph[0]->fillRecentHistoryMenu();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment