Fix GUI check result saving.

This commit is contained in:
Bastian Kleineidam 2011-12-20 20:53:49 +01:00
parent 9c40078ab9
commit 10b9c12ce9

View file

@ -33,11 +33,10 @@ FileExt2LogType = {
def urlsave (parent, config, urls):
"""Save URL results in file."""
res = get_save_filename(parent)
if not res:
filename, filetype = get_save_filename(parent)
if not filename:
# user canceled
return
filename = unicode(res)
logtype = FileExt2LogType.get(os.path.splitext(filename)[1])
if not logtype:
return