From 6c1b6f9981fdf44c6cea48b2287a150877fbf292 Mon Sep 17 00:00:00 2001 From: ITAYC0HEN Date: Sat, 27 Mar 2021 12:35:33 +0300 Subject: [PATCH] Prevent duplicate entries in recent projects --- src/common/Configuration.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/Configuration.cpp b/src/common/Configuration.cpp index 6178431d..22535074 100644 --- a/src/common/Configuration.cpp +++ b/src/common/Configuration.cpp @@ -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); }