From a7effaa7c4ac47bd2ce2faf19ae8faf9dcefb069 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 17 Apr 2012 10:55:59 +0200 Subject: [PATCH] respect an hardcoded default checked button --- declarativeimports/plasmacomponents/qml/ButtonGroup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/declarativeimports/plasmacomponents/qml/ButtonGroup.js b/declarativeimports/plasmacomponents/qml/ButtonGroup.js index ea8ca7485..5f9638bc1 100644 --- a/declarativeimports/plasmacomponents/qml/ButtonGroup.js +++ b/declarativeimports/plasmacomponents/qml/ButtonGroup.js @@ -49,6 +49,7 @@ function create(that, options) { self = that; direction = options.direction || Qt.Horizontal; self.childrenChanged.connect(rebuild); + self.exclusiveChanged.connect(rebuild); // self.widthChanged.connect(resizeChildren); build(); } @@ -88,7 +89,6 @@ function build() { item.checkable = true; if (self.exclusive) { - item.checked = false; checkHandlers.push(checkExclusive(item)); item.checkedChanged.connect(checkHandlers[checkHandlers.length - 1]); }