Fix #829912 (Edit metadata dialog: Splitters' positions are not saved)

This commit is contained in:
Kovid Goyal 2011-08-20 19:48:25 -06:00
parent 564ffc7e94
commit 2337570c9f
2 changed files with 3 additions and 1 deletions

View File

@ -186,7 +186,7 @@ def _config(): # {{{
c.add_opt('enforce_cpu_limit', default=True,
help=_('Limit max simultaneous jobs to number of CPUs'))
c.add_opt('gui_layout', choices=['wide', 'narrow'],
help=_('The layout of the user interface.\nWide has the '
help=_('The layout of the user interface. Wide has the '
'book details panel on the right and narrow has '
'it at the bottom.'), default='wide')
c.add_opt('show_avg_rating', default=True,

View File

@ -16,6 +16,8 @@ class LanguagesEdit(MultiCompleteComboBox):
def __init__(self, parent=None):
MultiCompleteComboBox.__init__(self, parent)
self.setSizeAdjustPolicy(self.AdjustToMinimumContentsLengthWithIcon)
self.setMinimumContentsLength(20)
self._lang_map = lang_map()
self.names_with_commas = [x for x in self._lang_map.itervalues() if ',' in x]
self.comma_map = {k:k.replace(',', '|') for k in self.names_with_commas}