dfb511d
--- branches/KDE/3.5/kdevelop/languages/cpp/cppsupportpart.cpp	2007/10/07 14:39:48	722530
dfb511d
+++ branches/KDE/3.5/kdevelop/languages/cpp/cppsupportpart.cpp	2007/10/23 22:58:44	728690
dfb511d
@@ -2533,6 +2533,9 @@
dfb511d
 				QStringList l = files.res;
dfb511d
 				while(!l.isEmpty() ) {
dfb511d
 					emit addedSourceInfo( l.front() );
dfb511d
+					emit aboutToRemoveSourceInfo( l.front() );
dfb511d
+					emit removedSourceInfo( l.front() );
dfb511d
+					emit addedSourceInfo( l.front() );
dfb511d
 					l.pop_front();
dfb511d
 				}
dfb511d
 
dfb511d
@@ -2542,9 +2545,11 @@
dfb511d
 				QStringList l = files.res;
dfb511d
 				while( !l.isEmpty() ) {
dfb511d
 					emit codeModelUpdated( l.front() );
dfb511d
+					emit aboutToRemoveSourceInfo( l.front() );
dfb511d
+					emit removedSourceInfo( l.front() );
dfb511d
+					emit addedSourceInfo( l.front() );
dfb511d
 					l.pop_front();
dfb511d
 				}
dfb511d
-				emit updatedSourceInfo();
dfb511d
 			}
dfb511d
 		}
dfb511d
 		kdDebug( 9007 ) << "files in code-model after parseEmit: " << codeModel()->fileList().count() << " before: " << oldFileCount << endl;