Adjust condition. We only want items that has no parent at this point

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666480
This commit is contained in:
Rafael Fernández López 2007-05-20 00:58:40 +00:00
parent 8676ce117d
commit 0fff43201f

View File

@ -129,7 +129,7 @@ void RadioButton::setChecked(bool checked)
{ {
siblingRadioButton = dynamic_cast<RadioButton*>(sibling); siblingRadioButton = dynamic_cast<RadioButton*>(sibling);
if (siblingRadioButton && siblingRadioButton->isChecked()) if (siblingRadioButton && siblingRadioButton->isChecked() && !siblingRadioButton->parentItem())
{ {
siblingRadioButton->setChecked(false); siblingRadioButton->setChecked(false);
break; // Only an item is checked at same time as maximum break; // Only an item is checked at same time as maximum