summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-02-13 17:36:23 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-02-13 17:58:31 +0100
commit8eb33ee13519bd3059cdb2019ef843fbb9a7fbd7 (patch)
tree03f250aead5556c40a5eab32b7a44bedbddc7bb1 /extensions
parentd6916216c5844ff3dd8313d99e361a419a66f6c6 (diff)
fdo#43399 hidden radio button should also gets unset
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/abpilot/typeselectionpage.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/extensions/source/abpilot/typeselectionpage.cxx b/extensions/source/abpilot/typeselectionpage.cxx
index 711159e90db0..aee521988d20 100644
--- a/extensions/source/abpilot/typeselectionpage.cxx
+++ b/extensions/source/abpilot/typeselectionpage.cxx
@@ -110,9 +110,13 @@ namespace abp
m_aAllTypes.push_back( ButtonItem( &m_aOE, AST_OE, bWithMozilla && !bUnx ) );
m_aAllTypes.push_back( ButtonItem( &m_aOther, AST_OTHER, true ) );
- bool bFirstVisible = true;
Link aTypeSelectionHandler = LINK(this, TypeSelectionPage, OnTypeSelected );
const Size aSpacing( LogicToPixel( Size( 0, 3 ), MAP_APPFONT ) );
+ if ( ! m_aAllTypes.empty() )
+ {
+ ButtonItem aItem = m_aAllTypes[0];
+ aItem.m_pItem->SetStyle( aItem.m_pItem->GetStyle() | WB_GROUP );
+ }
for ( ::std::vector< ButtonItem >::const_iterator loop = m_aAllTypes.begin();
loop != m_aAllTypes.end(); ++loop )
{
@@ -125,12 +129,6 @@ namespace abp
aTopLeft.Y() += aItemSize.Height() + aSpacing.Height();
aItem.m_pItem->SetClickHdl( aTypeSelectionHandler );
aItem.m_pItem->Show();
-
- if ( bFirstVisible )
- {
- aItem.m_pItem->SetStyle( aItem.m_pItem->GetStyle() | WB_GROUP );
- bFirstVisible = false;
- }
}
}
}