export file select dialogue does not correctly reject empty filenames - two (probably long standing) coding errors: use of method name 'strip' instead of calling it, and does not isolate the filename from the full pathname
svn: r21270
This commit is contained in:
parent
8f7a645ece
commit
6154ebad23
@ -357,7 +357,8 @@ class ExportAssistant(gtk.Assistant, ManagedWindow.ManagedWindow) :
|
|||||||
filename = filechooser.get_filename()
|
filename = filechooser.get_filename()
|
||||||
folder = filechooser.get_current_folder()
|
folder = filechooser.get_current_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 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):
|
and folder and Utils.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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user