Edit book: Fix a typo causing the preferences for which windows occupy which corners to not work

This commit is contained in:
Kovid Goyal 2013-12-20 23:58:17 +05:30
parent 0a8b250417
commit 497fea0cc9

View File

@ -215,7 +215,7 @@ class MainWindowSettings(BasicSettings):
choices = {'vertical':{'left':_('Left'), 'right':_('Right')}[h],
'horizontal':{'top':_('Top'), 'bottom':_('Bottom')}[v]}
name = 'dock_%s_%s' % (v, h)
w = self.choices_widget(name, choices, 'vertical', 'vertical')
w = self.choices_widget(name, choices, 'horizontal', 'horizontal')
cn = {('top', 'left'): _('The top-left corner'), ('top', 'right'):_('The top-right corner'),
('bottom', 'left'):_('The bottom-left corner'), ('bottom', 'right'):_('The bottom-right corner')}[(v, h)]
l.addRow(cn + ':', w)