summaryrefslogtreecommitdiff
blob: 5c2bc3161baaf92fb9b1cc5f5b0a678453869df6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- gourmet/gtk_extras/dialog_extras.py	2013-10-31 09:03:08.456469166 -0500
+++ gourmet/gtk_extras/dialog_extras.py	2013-10-31 09:04:18.175067008 -0500
@@ -1096,7 +1096,9 @@
                   buttons=None
                   ):
         FileSelectorDialog.__init__(self, title, filename, filters, action, set_filter, buttons)
-        self.fsd.set_current_folder(get_user_special_dir(USER_DIRECTORY_PICTURES))
+        pictures_dir = get_user_special_dir(USER_DIRECTORY_PICTURES)
+        if not pictures_dir == None:
+            self.fsd.set_current_folder(pictures_dir)
 
     def post_dialog (self):
         self.preview = gtk.Image()