]> git.sur5r.net Git - minitube/commitdiff
Fix segmented control checked action
authorFlavio <flavio@odisseo.local>
Sun, 1 Jan 2012 16:08:42 +0000 (17:08 +0100)
committerFlavio <flavio@odisseo.local>
Sun, 1 Jan 2012 16:08:42 +0000 (17:08 +0100)
src/segmentedcontrol.cpp

index 73b8a98406ca76f6392d8e44854b6e15b4f6e974..b5a05be1ae13dbe7f93c00f58149bdef077405d6 100644 (file)
@@ -45,7 +45,10 @@ bool SegmentedControl::setCheckedAction(QAction *action) {
     if (d->checkedAction == action) {
         return false;
     }
+    if (d->checkedAction)
+        d->checkedAction->setChecked(false);
     d->checkedAction = action;
+    d->checkedAction->setChecked(true);
     update();
     return true;
 }