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

workbench: store and restore window state

Changeset 93affb8681e4

Parent bc932ef74a9c

by Adrian Buehlmann

Changes to 2 files · Browse files at 93affb8681e4 Showing diff from parent bc932ef74a9c Diff from another changeset...

 
99
100
101
102
103
104
 
 
 
105
106
107
 
99
100
101
 
 
 
102
103
104
105
106
107
@@ -99,9 +99,9 @@
  QtGui.QTableView.mousePressEvent(self, event)     def createToolbars(self): - self.goto_toolbar = GotoQuickBar(self) - connect(self.goto_toolbar, SIGNAL('goto'), - self.goto) + self.goto_toolbar = tb = GotoQuickBar(self) + tb.setObjectName("goto_toolbar") + connect(tb, SIGNAL('goto'), self.goto)     def _action_defs(self):   a = [("back", self.tr("Back"), 'back', None,
 
85
86
87
 
88
89
90
 
122
123
124
125
126
127
128
129
130
131
132
133
 
 
 
 
 
 
 
134
135
136
 
137
138
139
 
547
548
549
 
550
551
552
 
85
86
87
88
89
90
91
 
123
124
125
 
 
 
 
 
 
 
 
 
126
127
128
129
130
131
132
133
134
 
135
136
137
138
 
546
547
548
549
550
551
552
@@ -85,6 +85,7 @@
    s = QtCore.QSettings()   self.restoreGeometry(s.value("Workbench/geometry").toByteArray()) + self.restoreState(s.value("Workbench/windowState").toByteArray())     self._repodate = self._getrepomtime()   self._watchrepotimer = self.startTimer(500) @@ -122,18 +123,16 @@
    def createToolbars(self):   # find quickbar - self.find_toolbar = FindInGraphlogQuickBar(self) - self.find_toolbar.attachFileView(self.textview_status) - self.find_toolbar.attachHeaderView(self.textview_header) - connect(self.find_toolbar, SIGNAL('revisionSelected'), - self.tableView_revisions.goto) - connect(self.find_toolbar, SIGNAL('fileSelected'), - self.tableView_filelist.selectFile) - connect(self.find_toolbar, SIGNAL('showMessage'), - self.statusBar().showMessage, + self.find_toolbar = tb = FindInGraphlogQuickBar(self) + tb.setObjectName("find_toolbar") + tb.attachFileView(self.textview_status) + tb.attachHeaderView(self.textview_header) + connect(tb, SIGNAL('revisionSelected'), self.tableView_revisions.goto) + connect(tb, SIGNAL('fileSelected'), self.tableView_filelist.selectFile) + connect(tb, SIGNAL('showMessage'), self.statusBar().showMessage,   Qt.QueuedConnection)   - self.attachQuickBar(self.find_toolbar) + self.attachQuickBar(tb)     # navigation toolbar   self.toolBar_edit.addAction(self.tableView_revisions._actions['back']) @@ -547,6 +546,7 @@
  event.ignore()   s = QtCore.QSettings()   s.setValue("Workbench/geometry", self.saveGeometry()); + s.setValue("Workbench/windowState", self.saveState())    def run(ui, *pats, **opts):   from tortoisehg.hgqt import setup_font_substitutions