Review Request 123959: Be Smarter About Handling Current Work Dir
David Narváez
david.narvaez at computer.org
Sun May 31 04:23:40 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123959/
-----------------------------------------------------------
Review request for KDevelop.
Repository: kdevplatform
Description
-------
The corner case this tries to handle is when I set my default folder to
/path/to/folder/withou/trailing/slash because in that case the code we
had will chop 'slash' from the path and my code will end up inside the
parent folder of the one I chose as default.
The case in which this analysis will fail is if you, e.g., choose to
fetch a KDE project, you click on a project you already have (now the
work dir exists and is a dir) and then you click some other project.
Your new project will end up inside the project you chose first. But I
think that is a better compromise than messing up a default folder
without a trailing slash.
Diffs
-----
shell/projectsourcepage.cpp 62ffbb6deefde83ca1f43e4a72f2b42cebd1ceb6
Diff: https://git.reviewboard.kde.org/r/123959/diff/
Testing
-------
1. Set your default project folder to a path to an existing folder, without a trailing slash (e.g., /home/user/Projects)
2. Select the KDE Provider
3. Choose a project
4. Check the project dir
Before this patch, your project dir will be /home/user/your_project. After this patch, your project dir will be /home/user/Projects/your_project.
Thanks,
David Narváez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20150531/5d83afc5/attachment.html>
More information about the KDevelop-devel
mailing list