diff --git a/common/widgets/properties_panel.cpp b/common/widgets/properties_panel.cpp index 3095022b2d..88471d546f 100644 --- a/common/widgets/properties_panel.cpp +++ b/common/widgets/properties_panel.cpp @@ -184,6 +184,14 @@ void PROPERTIES_PANEL::rebuildProperties( const SELECTION& aSelection ) reset(); return; } + else if( aSelection.Size() == 1 ) + { + m_caption->SetLabel( aSelection.Front()->GetFriendlyName() ); + } + else + { + m_caption->SetLabel( wxString::Format( _( "%d objects selected" ), aSelection.Size() ) ); + } // Get all the selected types std::set types; @@ -302,15 +310,6 @@ void PROPERTIES_PANEL::rebuildProperties( const SELECTION& aSelection ) } } - if( aSelection.Size() > 1 ) - { - m_caption->SetLabel( wxString::Format( _( "%d objects selected" ), aSelection.Size() ) ); - } - else - { - m_caption->SetLabel( aSelection.Front()->GetFriendlyName() ); - } - const wxString unspecifiedGroupCaption = _( "Basic Properties" ); for( const wxString& groupName : groupDisplayOrder )