Review Request: Ouf of projet file directory in Find/Replace "sync" button's dropdown

Lambert CLARA lambert.clara at yahoo.fr
Sat Feb 19 11:43:53 UTC 2011



> On Feb. 19, 2011, 1:31 a.m., Olivier Jean de Gaalon wrote:
> > Ignore previous review, it actually breaks from the loop if hadUrl contains the current url, instead of just skipping it.
> > Still, you could do without the bool by just checking if hadUrl already contains the current url, and adding it if not.

I don't think the bool can be dropped, otherwise if we entered the loop and broke from it at `if(!url.cd("..")) break;` the url would link to the parent directory of the project, and we do not want to add it.


- Lambert


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100682/#review1496
-----------------------------------------------------------


On Feb. 19, 2011, 12:50 a.m., Lambert CLARA wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100682/
> -----------------------------------------------------------
> 
> (Updated Feb. 19, 2011, 12:50 a.m.)
> 
> 
> Review request for KDevelop.
> 
> 
> Summary
> -------
> 
> In the "Find/Replace" dialog, if the current active file is not part of the project its directory is not present in the "sync" button's dropdown's list.
> This patch adds it.
> 
> 
> Diffs
> -----
> 
>   plugins/grepview/grepdialog.cpp e96419c 
> 
> Diff: http://git.reviewboard.kde.org/r/100682/diff
> 
> 
> Testing
> -------
> 
> Open two projects and an "orphan" file. With this file active, open the Find/Replace dialog and check the presence of its directory in the "sync" button dropdown.
> 
> 
> Thanks,
> 
> Lambert
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110219/8f4fbb71/attachment.html>


More information about the KDevelop-devel mailing list