mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-05 11:35:26 +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();
|
QStringList files = getRecentProjects();
|
||||||
files.removeAll(file);
|
files.removeAll(file);
|
||||||
files.prepend(file);
|
files.prepend(file);
|
||||||
|
|
||||||
|
// Make sure we don't keep duplicate entries
|
||||||
|
files.removeDuplicates();
|
||||||
setRecentProjects(files);
|
setRecentProjects(files);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user