[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdeui
From:       David Faure <faure () kde ! org>
Date:       2003-11-21 18:37:57
[Download RAW message or body]

CVS commit by faure: 

No no, do it _exactly_ like in the dtor: check that the parent is "this".
This is necessary for the evil case of one action in two or more collections.


  M +2 -1      kactioncollection.cpp   1.312


--- kdelibs/kdeui/kactioncollection.cpp  #1.311:1.312
@@ -334,4 +334,5 @@ KAction* KActionCollection::_take( KActi
       return 0;
 
+  if ( a->m_parentCollection == this )
   a->m_parentCollection = 0;
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic