Commit 409dd977 authored by Mathieu Faverge's avatar Mathieu Faverge

Minor

parent c67ed79a
......@@ -189,9 +189,9 @@ void Session::add_recent_file(const QString &filename) {
// We delete if the file was already call in order to be on the top of the list
files.removeAll(filename);
files.prepend(filename);
while (files.size() > _MAX_NB_RECENT_FILES)
while (files.size() > _MAX_NB_RECENT_FILES) {
files.removeLast();
}
S->setValue(RECENT_FILES, files);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment