Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

commit: save/restore horizontal splitter state

setting to the minimumSizeHint() was a fail

Changeset e26391cc1e95

Parent 4c4cb53395df

by Steve Borho

Changes to one file · Browse files at e26391cc1e95 Showing diff from parent 4c4cb53395df Diff from another changeset...

 
71
72
73
74
75
76
77
78
79
 
118
119
120
 
121
122
123
 
134
135
136
 
137
138
139
 
71
72
73
 
 
 
74
75
76
 
115
116
117
118
119
120
121
 
132
133
134
135
136
137
138
@@ -71,9 +71,6 @@
  # Add status widget document frame below our splitter   # this reparents the docf from the status splitter   self.split.addWidget(self.stwidget.docf) - h = self.split.sizeHint().height() - mh = upperframe.minimumSizeHint().height() - self.split.setSizes([mh, h-mh])     # add our splitter where the docf used to be   self.stwidget.split.addWidget(self.split) @@ -118,6 +115,7 @@
  repo = self.stwidget.repo   repoid = str(repo[0])   # message history is stored in unicode + self.split.restoreState(s.value('commit/split').toByteArray())   self.msghistory = list(s.value('commit/history-'+repoid).toStringList())   self.msghistory = [s for s in self.msghistory if s]   self.msgcombo.reset(self.msghistory) @@ -134,6 +132,7 @@
  repo = self.stwidget.repo   repoid = str(repo[0])   s.setValue('commit/history-'+repoid, self.msghistory) + s.setValue('commit/split', self.split.saveState())   try:   # current message is stored in local encoding   repo.opener('cur-message.txt', 'w').write(self.getMessage())