Skip to content

Commit

Permalink
Check if recent files exists
Browse files Browse the repository at this point in the history
Ref: #146
  • Loading branch information
rodlie committed May 12, 2024
1 parent 7c74942 commit a477b82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/GUI/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit a477b82

Please sign in to comment.