Skip to content
Snippets Groups Projects
Commit ed98157f authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm constant

parent c7167936
No related branches found
No related tags found
1 merge request!2411minor cleanup in project context
...@@ -44,8 +44,6 @@ const char S_SAMPLE_3DVIEW_WIDGET_SIZE[] = "size"; ...@@ -44,8 +44,6 @@ const char S_SAMPLE_3DVIEW_WIDGET_SIZE[] = "size";
const char S_PARAMETER_TUNING_WIDGET_COLUMN_WIDTH[] = "width"; const char S_PARAMETER_TUNING_WIDGET_COLUMN_WIDTH[] = "width";
const char S_INSTRUMENT_LIBRARY_EDITOR_TREE_WIDTH[] = "width"; const char S_INSTRUMENT_LIBRARY_EDITOR_TREE_WIDTH[] = "width";
const int MAX_RECENT_PROJECTS = 10;
// Hints // Hints
const unsigned int FIT_ACTIVITY_PANEL_WIDTH = 480; const unsigned int FIT_ACTIVITY_PANEL_WIDTH = 480;
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "GUI/Model/Project/ProjectUtil.h" #include "GUI/Model/Project/ProjectUtil.h"
#include "GUI/View/Info/MessageBox.h" #include "GUI/View/Info/MessageBox.h"
#include "GUI/View/Layout/ApplicationSettings.h" #include "GUI/View/Layout/ApplicationSettings.h"
#include "GUI/View/Layout/mainwindow_constants.h"
#include "GUI/View/Manager/AutosaveController.h" #include "GUI/View/Manager/AutosaveController.h"
#include "GUI/View/Manager/NewProjectDialog.h" #include "GUI/View/Manager/NewProjectDialog.h"
#include "GUI/View/Manager/ProjectLoadProblemDialog.h" #include "GUI/View/Manager/ProjectLoadProblemDialog.h"
...@@ -324,7 +323,7 @@ void ProjectManager::addToRecentProjects() ...@@ -324,7 +323,7 @@ void ProjectManager::addToRecentProjects()
QString fname = gDoc->projectFullPath(); QString fname = gDoc->projectFullPath();
m_recent_projects.removeAll(fname); m_recent_projects.removeAll(fname);
m_recent_projects.prepend(fname); m_recent_projects.prepend(fname);
while (m_recent_projects.size() > GUI::Style::MAX_RECENT_PROJECTS) while (m_recent_projects.size() > 10)
m_recent_projects.removeLast(); m_recent_projects.removeLast();
emit recentListModified(); emit recentListModified();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment