Added test to open save-as dialog if save location is unavailable

This commit is contained in:
Stevan Pettit 2011-12-31 23:09:49 -05:00
parent 14dde1f0c4
commit 3b58fe88f2
1 changed files with 4 additions and 1 deletions

View File

@ -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: