--- kdevelop/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp.orig	2005-07-20 05:52:25.000000000 +0200
+++ kdevelop/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp	2005-07-20 05:59:49.000000000 +0200
@@ -98,9 +98,9 @@ void KDevCustomImporter::processDir( con
 			QString fileName = it.current() ->fileName();
 			if ( fileName == "." || fileName == ".." )
 				continue;
-			QString path = it.current() ->absFilePath();
 			if ( it.current() ->isDir() )
 			{
+				QString path = it.current() ->absFilePath();
 				kdDebug( 9015 ) << "Pushing: " << path << endl;
 				s.push( path );
 				files += fileList( path );
