Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't set initial filename if the image doesn't have a name yet: Fix …

…issue #2
  • Loading branch information...
commit cf598b9a1fd2b5b8805555f41edd5236764bce28 1 parent e808110
Akkana Peck authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 export-scaled.py
5 export-scaled.py
View
@@ -103,8 +103,9 @@ def python_export_scaled(img, drawable) :
gtk.STOCK_SAVE,
gtk.RESPONSE_OK))
- chooser.set_current_name(os.path.basename(init_filename))
- chooser.set_current_folder(os.path.dirname(init_filename))
+ if init_filename :
+ chooser.set_current_name(os.path.basename(init_filename))
+ chooser.set_current_folder(os.path.dirname(init_filename))
vbox = gtk.VBox(spacing=8)
Please sign in to comment.
Something went wrong with that request. Please try again.