Index: ./parts/outputviews/makewidget.cpp
===================================================================
RCS file: /home/kde/kdevelop/parts/outputviews/makewidget.cpp,v
retrieving revision 1.114
diff -r1.114 makewidget.cpp
415a416
> 	int dirlevel = 0;
420c421,433
< 			return edi->directory + "/";
---
> 		{
> 			if (dirlevel == 0)
> 				return edi->directory + "/";
> 			else
> 				dirlevel--;
> 		}
> 
> 		ExitingDirectoryItem* ldi = dynamic_cast<ExitingDirectoryItem*>( *it );
> 		if ( ldi )
> 			dirlevel++;
> 
> 		if (dirlevel < 0)
> 			return QString::null;
