User forums > Using Code::Blocks

bug in to-do panel

(1/2) > >>

frithjofh:
Hello everybody,

I think I found a small bug in the to-do panel. I'm using a self compiled code::blocks from svn5686. Having various items in the to-do list of the panel, I can sort them by clicking a columns header. For all columns this seems to work just fine, but the priority column just doesn't sort right. A typical sorting here is like " 5 5 1 9 6 1 1 " , clicking again reverts the order alright to " 1 1 6 9 1 5 5 " . But what sorting order this actually is, I have no idea ...

Not really a dangerous bug, but quite annoying ...

EDIT_1: digging a little bit into the behavior I found that when changing the priority manually in the file, this does not have any effect on the to-do panel after refreshing. It just keeps on showing the priority values like they were before editing ... the other values in the line react as expected after editing.

EDIT_2: it seems as if the sorting happens by the int priority value. I just can't find where this value is actually initialized, it should be done somewhere by using the wxString priorityStr value, but it seems as if this never happens correctly. The sorting order is not random either as I tested by closing and reopening a project ...

Regards

nausea

killerbot:
could you file this in our bug tracker at berlios ??

we hope to have a look at it soon.

frithjofh:
OK,

did so under Application::WrongBehaviour using the same text I posted above.

Regards

nausea

kfmfe04:
Interesting... ...the rows are supposed to be sortable if you click on the headers?

Mine does nothing when I click on the headers.

Build: Apr 19 2009, 15:53:11 - wx2.8.9 (Linux, unicode), amd64 Jaunty

Jenna:

--- Quote from: kfmfe04 on July 18, 2009, 08:51:37 am ---Interesting... ...the rows are supposed to be sortable if you click on the headers?

Mine does nothing when I click on the headers.

Build: Apr 19 2009, 15:53:11 - wx2.8.9 (Linux, unicode), amd64 Jaunty



--- End quote ---

Works here (debian 64-bit) except for the priority sorting bug.

By the way it would be nice to have a little triangle (or something like that) that shows the row as sorted and gives the sorting direction.
Don't know if it can easily be done.

Navigation

[0] Message Index

[#] Next page

Go to full version