Skip to content

Commit

Permalink
Fixes #31
Browse files Browse the repository at this point in the history
  • Loading branch information
robertklep committed Nov 7, 2014
1 parent 7262692 commit 85230e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quotefix/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class QuoteFixPreferencesModule(NSPreferencesModule):
def init(self):
bundle = NSBundle.bundleWithIdentifier_('name.klep.mail.QuoteFix')
nib = bundle.loadNibNamed_owner_topLevelObjects_('QuoteFixPreferencesModule', self, None)
if not nib or nib[0] < 1:
raise AssertionError('unable to load nib')
nib[1].retain()
self.view = filter(lambda _: isinstance(_, NSBox), nib[1])[0]
self.setMinSize_(self.view.boundsSize())
self.setPreferencesView_(self.view)
Expand Down

0 comments on commit 85230e0

Please sign in to comment.