Project

General

Profile

Bug #3514

Wt 3.3.3 WBatchEditProxyModel::flags() breaks model Indexes

Added by Jan Lindemann almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
08/04/2014
Due date:
% Done:

0%

Estimated time:

Description

Dear Devs,

WBatchEditProxyModel's flags() method in Wt 3.3.3 passes inconsistent indexes

to the proxied model.

The attached patch fixes that and works for me. It also patches the unit test,

I haven't actually verified that part, though.

Best regards,

Jan


Files

#1

Updated by Koen Deforche almost 8 years ago

  • Status changed from New to InProgress
  • Assignee set to Roel Standaert
  • Target version set to 3.3.4
#2

Updated by Roel Standaert almost 8 years ago

  • Status changed from InProgress to Resolved
return sourceModel()->flags(index);

indeed needs to be

return sourceModel()->flags(sourceIndex);

. The

return WAbstractProxyModel::flags(index);

line is correct, though. I've fixed it and implemented a working test.

#3

Updated by Jan Lindemann almost 8 years ago

Ah, I see. Thank you!

#4

Updated by Koen Deforche over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF