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