Commits

Yuya Nishihara committed eab2c63

filediffdialog: sync columns visibility of both sides again

It was temporarily disabled at 93badf63aeb0, where the visibility attributes
were moved from model to view.

Comments (0)

Files changed (1)

tortoisehg/hgqt/filedialogs.py

         for table in self._repoViews:
             table.setTabKeyNavigation(False)
             table.installEventFilter(self)
+            table.columnsVisibilityChanged.connect(self._syncColumnsVisibility)
             table.revisionSelected.connect(self.onRevisionSelected)
             table.revisionActivated.connect(self.onRevisionActivated)
 
             self.update_page_steps(keeppos)
             self.timer.start()
 
+    @qtlib.senderSafeSlot()
+    def _syncColumnsVisibility(self):
+        src = self.sender()
+        dest = dict(zip(self._repoViews, reversed(self._repoViews)))[src]
+        dest.setVisibleColumns(src.visibleColumns())
+
     @pyqtSlot(int)
     def sbar_changed_left(self, value):
         self.sbar_changed(value, 'left')