Fix issue #943 by typecasting to Path objects

This commit is contained in:
Raoul Snyman 2022-02-03 07:49:55 +00:00 committed by Tim Bentley
parent 9b1fb4fe9f
commit efc32c9b1f
1 changed files with 1 additions and 0 deletions

View File

@ -1290,6 +1290,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, LogMixin, RegistryPropert
self.recent_files_menu.clear()
count = 0
for recent_path in self.recent_files:
recent_path = Path(recent_path)
if not recent_path.is_file():
continue
count += 1