From efc32c9b1f7d3acde18c6aa085989e29ff448a5c Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Thu, 3 Feb 2022 07:49:55 +0000 Subject: [PATCH] Fix issue #943 by typecasting to Path objects --- openlp/core/ui/mainwindow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index 89cb1e2d5..6299cc0ed 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -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