~mahfiaz/openlp/author-delete-button-not-active-in-edit-dialog

« back to all changes in this revision

Viewing changes to openlp/plugins/songs/lib/openlyricsexport.py

  • Committer: Tim Bentley
  • Date: 2013-06-30 19:18:21 UTC
  • mfrom: (2250.1.16 general)
  • Revision ID: tim.bentley@gmail.com-20130630191821-ciqz5thymx0cffjb
Fix up registry for Application exit.  Remove FormattingTags pickle , Other minor cleanups

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
    def _get_application(self):
86
86
        """
87
 
        Adds the openlp to the class dynamically
 
87
        Adds the openlp to the class dynamically.
 
88
        Windows needs to access the application in a dynamic manner.
88
89
        """
89
 
        if not hasattr(self, u'_application'):
90
 
            self._application = Registry().get(u'application')
91
 
        return self._application
 
90
        if os.name == u'nt':
 
91
            return Registry().get(u'application')
 
92
        else:
 
93
            if not hasattr(self, u'_application'):
 
94
                self._application = Registry().get(u'application')
 
95
            return self._application
92
96
 
93
97
    application = property(_get_application)