Skip to content

Commit

Permalink
Github Issue #106: Added a slot for handling the removal of recently …
Browse files Browse the repository at this point in the history
…deleted file from the list of recently opened list of files
  • Loading branch information
AngryFender committed Oct 19, 2023
1 parent 0110847 commit 5dfd8f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recentfilesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,8 @@ void RecentFilesDialog::updateRecentFileHandle(const QString &relativePath)
listWidget->insertItem(0,newItem);
listWidget->setCurrentRow(0,QItemSelectionModel::Select);
}

void RecentFilesDialog::removeRecentDeletedFileHandle(const QString &relativePath)
{
//find the filename and remove it from the list
}
1 change: 1 addition & 0 deletions recentfilesdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class RecentFilesDialog : public QDialog
const QString getCurrentRelativeFile()const;
public slots:
void updateRecentFileHandle(const QString &relativePath);
void removeRecentDeletedFileHandle(const QString &relativePath);
};

#endif // RECENTFILESDIALOG_H

0 comments on commit 5dfd8f3

Please sign in to comment.