Permalink
Browse files

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

…issue #2
  • Loading branch information...
1 parent e808110 commit cf598b9a1fd2b5b8805555f41edd5236764bce28 @akkana committed Sep 3, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 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)

0 comments on commit cf598b9

Please sign in to comment.