diff --git a/pyfda/libs/compat.py b/pyfda/libs/compat.py index 961dacbe..24e66a23 100644 --- a/pyfda/libs/compat.py +++ b/pyfda/libs/compat.py @@ -121,10 +121,13 @@ def setText(self, text): return def sizeHint(self): + is_checked = self.isChecked() + self.setChecked(False) s = QPushButton.sizeHint(self) w = self.__lbl.sizeHint() s.setWidth(w.width() + 2 * self.margin) # s.setHeight(w.height()) + self.setChecked(is_checked) return s # def clicked(self):