6496: GUI Export fails in gramps40
svn: r21774
This commit is contained in:
parent
da8cb286cd
commit
b4c225fc35
@ -315,11 +315,16 @@ class ExportAssistant(Gtk.Assistant, ManagedWindow) :
|
||||
show=True
|
||||
"""
|
||||
filename = filechooser.get_filename()
|
||||
if not filename:
|
||||
self.set_page_complete(filechooser, False)
|
||||
else:
|
||||
folder = filechooser.get_current_folder()
|
||||
if not folder:
|
||||
folder = find_folder(filename)
|
||||
else:
|
||||
folder = find_folder(folder)
|
||||
#the file must be valid, not a folder, and folder must be valid
|
||||
if filename and os.path.basename(filename.strip()) \
|
||||
and find_folder(filename) == '' \
|
||||
and folder and find_folder(folder):
|
||||
if (filename and os.path.basename(filename.strip()) and folder):
|
||||
#this page of the assistant is complete
|
||||
self.set_page_complete(filechooser, True)
|
||||
else :
|
||||
|
Loading…
Reference in New Issue
Block a user