Hey Vadim,

2009/4/28 Vadim Pratkin <vadim.prat...@gmail.com>:
> Hello Witty-interest,
>
>   Sometimes DataStore::modelDataChanged is called with empty recordIds_ , so
> it causes error:
>
> void DataStore::modelDataChanged(const WModelIndex& topLeft,
>
>                                 const WModelIndex& bottomRight)
>
> {
>
>        if( !recordIds_.size() ) return; // vvv
>
>   if (dataLocation_ == ClientSide) {
>
> ...
>

Thanks for the debugging work, but, same question here as with the
other problem you observed in DataStore, I cannot really see how this
could happen (recordIds_ is always updated when rows are added or
removed to the model).

Are you using a standard model or one that you implemented yourself ?

If you are using a standard model, can you get me a stack trace when
this happens ? Or even better, a test case ?

If you are creating your own model, are you sure you call the
WAbstractItemModel::rowsAboutToBeInserted() and
WAbstractItemModel::rowsInserted() methods when inserting rows ?

Regards,
koen

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to