~ubuntu-branches/ubuntu/saucy/gaupol/saucy-proposed

« back to all changes in this revision

Viewing changes to gaupol/dialogs/open.py

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ożarowski
  • Date: 2011-05-30 23:34:55 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20110530233455-dbhjajtn3tnz2r2e
Tags: 0.18-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    def _on_response(self, dialog, response):
67
67
        """Save default values for widgets."""
68
68
        gaupol.conf.file.encoding = self.get_encoding()
69
 
        gaupol.conf.file.directory = self.get_current_folder()
 
69
        directory = self.get_current_folder()
 
70
        if directory is not None:
 
71
            gaupol.conf.file.directory = directory
70
72
        index = self._align_combo.get_active()
71
73
        gaupol.conf.file.align_method = aeidon.align_methods[index]