Fixed an issue in the Mercurial rebase dialog where some radio buttons could be unchecked resulting in no option selected.

Sat, 29 Oct 2016 09:35:01 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 29 Oct 2016 09:35:01 +0200
changeset 5280
929f7984ba8b
parent 5279
7aa4ead48395
child 5282
898b0dda21e1

Fixed an issue in the Mercurial rebase dialog where some radio buttons could be unchecked resulting in no option selected.

Plugins/VcsPlugins/vcsMercurial/RebaseExtension/HgRebaseDialog.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsMercurial/RebaseExtension/HgRebaseDialog.py	Thu Oct 27 19:35:33 2016 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/RebaseExtension/HgRebaseDialog.py	Sat Oct 29 09:35:01 2016 +0200
@@ -10,7 +10,7 @@
 from __future__ import unicode_literals
 
 from PyQt5.QtCore import pyqtSlot
-from PyQt5.QtWidgets import QDialog, QDialogButtonBox
+from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QButtonGroup
 
 from .Ui_HgRebaseDialog import Ui_HgRebaseDialog
 
@@ -32,6 +32,11 @@
         super(HgRebaseDialog, self).__init__(parent)
         self.setupUi(self)
         
+        self.__sourceRevisionButtonGroup = QButtonGroup(self)
+        self.__sourceRevisionButtonGroup.addButton(self.parentButton)
+        self.__sourceRevisionButtonGroup.addButton(self.sourceButton)
+        self.__sourceRevisionButtonGroup.addButton(self.baseButton)
+        
         self.tag1Combo.addItems(sorted(tagsList))
         self.tag2Combo.addItems(sorted(tagsList))
         self.branch1Combo.addItems(["default"] + sorted(branchesList))

eric ide

mercurial