]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Same for patches
authorMattia Basaglia <mattia.basaglia@gmail.com>
Thu, 23 Jul 2015 12:18:46 +0000 (14:18 +0200)
committerMattia Basaglia <mattia.basaglia@gmail.com>
Thu, 23 Jul 2015 12:18:46 +0000 (14:18 +0200)
radiant/patch.h

index 9e1bb16d99f085cf74b131ab63c25898ed5e3fe2..ee4fb03abc44f718c60ef59a64fc4a8a07a2e8b8 100644 (file)
@@ -1414,6 +1414,12 @@ void allocate( std::size_t size ){
 
 void setSelected( bool select ){
        m_selectable.setSelected( select );
+       if ( !select && parent() )
+       {
+               Selectable* sel_parent = Instance_getSelectable(*parent());
+               if ( sel_parent && sel_parent->isSelected() )
+                       sel_parent->setSelected(false);
+       }
 }
 bool isSelected() const {
        return m_selectable.isSelected();