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

Christoph Bartoschek bartoschek at or.uni-bonn.de
Sun Jun 21 22:41:02 UTC 2009


Am Sonntag, 21. Juni 2009 schrieb Andreas Pakulat:

> @Christoph: If you have commit rights please commit, patch is fine. Would
> be good if you could also check the grepview plugin in kdevelop for similar
> problems.

There is one problem with the functions in grepview:

1. Search for a string that only occurs once.
2. Press F4 to get to the occurence of the string.
3. Close the file with the string
4. Press F4 again and nothing happens.

The problem with the current function is, that the currently highlighted line 
is not found again.

The attached patch fixes this. However it assumes that the grep view model 
uses only one column.

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


More information about the KDevelop-devel mailing list