[PATCH] Prevent endless loop in search for next item (F4)

Christoph Bartoschek bartoschek at or.uni-bonn.de
Sun Jun 21 15:13:27 UTC 2009


Hi,

when one presses F4 to search for the next active item, but there are no 
active items in the list and there is no previous one, then kdevelop goes in 
an endless loop.

The reason is that startrow is 0 in MakeOutputModel::nextHighlightIndex and 
currow cannot get ever 0. Altogether this gives some problems with items in 
the row 0.

I've fixed this by making the whole function logic simpler. One just goes over 
all items starting with the first one or the one after the currently 
highlighted one.

Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output.patch
Type: text/x-patch
Size: 1922 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20090621/bccbeca3/attachment.patch>


More information about the KDevelop-devel mailing list