Merge branch 'issue-943-recent-files-bug' into 'master'

Fix issue #943 by typecasting to Path objects

Closes #943

See merge request openlp/openlp!395
This commit is contained in:
Tim Bentley 2022-02-03 07:49:55 +00:00
commit 235fd9244f

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