Commits

Yuya Nishihara committed 8540deb

repowidget: do not switch to sync tab on pull incoming bundle

Since 2.8, we have workbench toolbar to select push/pull URL, so it's less
useful to switch to sync tab.

  • Participants
  • Parent commits 1eeec9e

Comments (0)

Files changed (1)

File tortoisehg/hgqt/repowidget.py

 
     def acceptBundle(self):
         if self.bundle:
-            self.taskTabsWidget.setCurrentIndex(self.syncTabIndex)
-            self.syncDemand.pullBundle(self.bundle, None, self.bundlesource)
+            w = self.syncDemand.get()
+            w.pullBundle(self.bundle, None, self.bundlesource)
 
     def pullBundleToRev(self):
         if self.bundle:
                 self._activeInfoBar.hide()
                 self._freeInfoBar()
 
-            self.taskTabsWidget.setCurrentIndex(self.syncTabIndex)
-            self.syncDemand.pullBundle(self.bundle, self.rev,
-                                       self.bundlesource)
+            w = self.syncDemand.get()
+            w.pullBundle(self.bundle, self.rev, self.bundlesource)
 
     def rejectBundle(self):
         self.clearBundle()