mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 10:56:11 +00:00
Prevent duplicate entries in recent projects
This commit is contained in:
parent
da457b0682
commit
6c1b6f9981
@ -791,5 +791,8 @@ void Configuration::addRecentProject(QString file)
|
||||
QStringList files = getRecentProjects();
|
||||
files.removeAll(file);
|
||||
files.prepend(file);
|
||||
|
||||
// Make sure we don't keep duplicate entries
|
||||
files.removeDuplicates();
|
||||
setRecentProjects(files);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user