From a477b827daa8b17b735b7f238fc30511b2ad3c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Sun, 12 May 2024 14:44:22 +0200 Subject: [PATCH] Check if recent files exists Ref: #146 --- src/app/GUI/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/GUI/mainwindow.cpp b/src/app/GUI/mainwindow.cpp index 188fb2252..16e39b071 100644 --- a/src/app/GUI/mainwindow.cpp +++ b/src/app/GUI/mainwindow.cpp @@ -1986,6 +1986,7 @@ void MainWindow::updateRecentMenu() mRecentMenu->clear(); for (const auto &path : mRecentFiles) { QFileInfo info(path); + if (!info.exists()) { continue; } mRecentMenu->addAction(QIcon::fromTheme("friction"), info.baseName(), [path, this]() { openFile(path); });