From: Flavio Date: Sun, 1 Jan 2012 16:08:42 +0000 (+0100) Subject: Fix segmented control checked action X-Git-Tag: 1.7~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=62be39961c43f2626756c7c190b654142806f1c7;p=minitube Fix segmented control checked action --- diff --git a/src/segmentedcontrol.cpp b/src/segmentedcontrol.cpp index 73b8a98..b5a05be 100644 --- a/src/segmentedcontrol.cpp +++ b/src/segmentedcontrol.cpp @@ -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; }