Git commit 7b48f259fb6e3eba081cc67df611949e4e03a719 by Niko Sams. Committed on 20/11/2013 at 18:58. Pushed by nsams into branch 'master'. Fix deleting empty folders in git versioned project I fixed this already a year ago but for some reason this got broken again. M +3 -2 project/helper.cpp http://commits.kde.org/kdevplatform/7b48f259fb6e3eba081cc67df611949e4e03a719 diff --git a/project/helper.cpp b/project/helper.cpp index fd8fa34..af30b86 100644 --- a/project/helper.cpp +++ b/project/helper.cpp @@ -29,6 +29,7 @@ #include = #include +#include #include #include #include @@ -59,8 +60,8 @@ bool KDevelop::removeUrl(const KDevelop::IProject* projec= t, const KUrl& url, con } } = - //if we didn't find a VCS, we remove using KIO - if ( !KIO::NetAccess::del( url, window ) ) { + //if we didn't find a VCS, we remove using KIO (if the file still exis= ts, the vcs plugin might have simply deleted the url without returning a job + if ( !KIO::NetAccess::del( url, window ) && url.isLocalFile() && (QFil= eInfo(url.toLocalFile())).exists() ) { KMessageBox::error( window, isFolder ? i18n( "Cannot remove folder %1.", url.pathOr= Url() ) : i18n( "Cannot remove file %1.", url.pathO= rUrl() ) );