~freshapplepy/rssn/main

« back to all changes in this revision

Viewing changes to rss_notify/gui.py

  • Committer: Isaiah Heyer
  • Date: 2009-09-26 16:18:07 UTC
  • Revision ID: freshapplepy@gmail.com-20090926161807-hclua4wnzj99baox
Fixed feed importing and exporting bugs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
 
261
261
            dialog.set_current_folder(self.import_last_dir)
262
262
        else:
 
263
 
263
264
            dialog.set_current_folder(os.getenv("HOME"))
264
265
 
265
266
        response = dialog.run()
292
293
                gtk.FILE_CHOOSER_ACTION_SAVE)
293
294
        dialog.set_transient_for(self.window)
294
295
 
295
 
        if not self.export_last_dir:
 
296
        if self.export_last_dir:
 
297
            dialog.set_current_folder(self.export_last_dir)
 
298
        else:
296
299
            dialog.set_current_folder(os.getenv("HOME"))
297
300
 
298
301
        dialog.set_current_name("feedlist.opml")
310
313
 
311
314
        self.export_last_dir = dialog.get_current_folder()
312
315
 
 
316
        dialog.destroy()
 
317
 
313
318
 
314
319
    def on_Preferences_activate(self, action, data=None):
315
320
        prefs = Preferences()