From 62be39961c43f2626756c7c190b654142806f1c7 Mon Sep 17 00:00:00 2001 From: Flavio Date: Sun, 1 Jan 2012 17:08:42 +0100 Subject: [PATCH] Fix segmented control checked action --- src/segmentedcontrol.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5