diff --git a/src/ExportAssistant.py b/src/ExportAssistant.py index 2a9d0f9cd..cc3eb9688 100644 --- a/src/ExportAssistant.py +++ b/src/ExportAssistant.py @@ -357,7 +357,8 @@ class ExportAssistant(gtk.Assistant, ManagedWindow.ManagedWindow) : filename = filechooser.get_filename() folder = filechooser.get_current_folder() #the file must be valid, not a folder, and folder must be valid - if filename and filename.strip and Utils.find_folder(filename) == '' \ + if filename and os.path.basename(filename.strip()) \ + and Utils.find_folder(filename) == '' \ and folder and Utils.find_folder(folder): #this page of the assistant is complete self.set_page_complete(filechooser, True)