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