From 3b58fe88f24101c3c664fd249b3c9bfa9c500ccb Mon Sep 17 00:00:00 2001 From: Stevan Pettit Date: Sat, 31 Dec 2011 23:09:49 -0500 Subject: [PATCH] Added test to open save-as dialog if save location is unavailable --- openlp/core/ui/servicemanager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index ecfe07d60..9451026d9 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -595,7 +595,10 @@ class ServiceManager(QtGui.QWidget): self.mainwindow.finishedProgressBar() Receiver.send_message(u'cursor_normal') if success: - shutil.copy(temp_file_name, path_file_name) + try: + shutil.copy(temp_file_name, path_file_name) + except: + self.saveFileAs() self.mainwindow.addRecentFile(path_file_name) self.setModified(False) try: