Hey Daniel, 2010/1/29 Ginsburg, Daniel <[email protected]>: > What was happening is that in expandToDepth(4) I was getting a bunch of these > messages: > > Comparing indexes from different models are you? > Comparing indexes from different models are you? > Comparing indexes from different models are you? > Comparing indexes from different models are you? > Comparing indexes from different models are you? > Comparing indexes from different models are you? > .... > > I believe what the problem is that this function gets called multiple times > before a re-render happen, and thus WTreeView::rootNode_ does not get reset. > I modified WTreeView::setModel() to include: > > > delete rootNode_; > rootNode_ = NULL; > > This seems to have fixed the problem.
I believe this is right. I have committed to public git a slightly different variant of this fix (to delete the rootNode_ as soon as the entire view will be rerendered). > Note that prior to all this instead of deleting/creating a new model I tried > doing mModel->clear() and then I got another problem which was an assert in > WTreeView::modelRowsAboutToBeRemoved() (assert(w)). I wonder if this is not > related to the same problem? I don't think so. I have looked at the code and it must be a problem with row deletion. I would need to reproduce the problem, but I already found some untidy house keeping in the code and cleaned it up, which may perhaps already fix the problem ? > > Well, anyway, this is my first time really diving into the Wt src so it's > possible I'm doing something wrong. What do you guys think? Good work, thanks ! Regards, koen ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
