D9344: [KDevelop] : [fixed] consistent use of the project name allowing to create multiple projects in a single source tree
Friedrich W. H. Kossebau
noreply at phabricator.kde.org
Tue Oct 16 14:08:39 BST 2018
kossebau added inline comments.
INLINE COMMENTS
> openprojectdialog.cpp:277
> }
> - m_url.setPath( m_url.path() + QLatin1Char('/') + m_url.fileName() + QLatin1Char('.') + ShellExtension::getInstance()->projectFileExtension() );
> + if (!m_url.toLocalFile().endsWith(QLatin1Char('.') + ShellExtension::getInstance()->projectFileExtension())) {
> + m_url.setPath( m_url.path() + QLatin1Char('/') + m_url.fileName() + QLatin1Char('.') + ShellExtension::getInstance()->projectFileExtension() );
When can this situation happen? After all `m_url` is handled above with
if( !urlInfo.isDir ) {
m_url = m_url.adjusted(QUrl::StripTrailingSlash | QUrl::RemoveFilename);
}
Do people have directories using the projectFileExtension in the dir name? Or would they select the hidden directories with the personal kdevelop project data? Why should the global project filename not be set in this case?
Please add a code comment to make this clear. There has been some related discussion in the review comments, but on a few minutes read I have not grasped this logic, so at least for code readers like me some code comment explanation is needed.
REPOSITORY
R32 KDevelop
REVISION DETAIL
https://phabricator.kde.org/D9344
To: rjvbb, #kdevelop, mwolff, kossebau
Cc: kossebau, arrowd, mschwarz, kfunk, mwolff, kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20181016/f42ec902/attachment-0001.html>
More information about the KDevelop-devel
mailing list