[Bug 67995] class view doesn't update when removing/adding files

Alexander Dymo cloudtemple at mksat.net
Fri Nov 21 22:51:04 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=67995     
cloudtemple at mksat.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From cloudtemple at mksat.net  2003-11-21 22:50 -------
Subject: kdevelop/buildtools

CVS commit by dymo: 

Emit aboutToRemoveFromSourceInfo signal before doing the actual remove in the project manager. This allows the classview to delete properly assosiated symbols from class tree and combos.
CCMAIL: 67995-done at bugs.kde.org


  M +5 -5      ant/antprojectpart.cpp   1.23
  M +2 -3      autotools/removefiledlg.cpp   1.18
  M +3 -3      custommakefiles/customprojectpart.cpp   1.67
  M +2 -2      script/scriptprojectpart.cpp   1.38


--- kdevelop/buildtools/script/scriptprojectpart.cpp  #1.37:1.38
@@ -317,4 +317,6 @@ void ScriptProjectPart::removeFile(const
 void ScriptProjectPart::removeFiles ( const QStringList& fileList )
 {
+        emit removedFilesFromProject ( fileList );
+
         QStringList::ConstIterator it;
 
@@ -323,6 +325,4 @@ void ScriptProjectPart::removeFiles ( co
                 m_sourceFiles.remove ( ( *it ) );
         }
-
-        emit removedFilesFromProject ( fileList );
 }
 

--- kdevelop/buildtools/custommakefiles/customprojectpart.cpp  #1.66:1.67
@@ -456,4 +456,7 @@ void CustomProjectPart::removeFile(const
 void CustomProjectPart::removeFiles ( const QStringList& fileList )
 {
+        kdDebug(9025) << "Emitting removedFilesFromProject" << endl;
+        emit removedFilesFromProject ( fileList );
+
         QStringList::ConstIterator it;
 
@@ -462,7 +465,4 @@ void CustomProjectPart::removeFiles ( co
                 m_sourceFiles.remove ( *it );
         }
-
-        kdDebug(9025) << "Emitting removedFilesFromProject" << endl;
-        emit removedFilesFromProject ( fileList );
 }
 

--- kdevelop/buildtools/autotools/removefiledlg.cpp  #1.17:1.18
@@ -96,4 +95,6 @@ RemoveFileDialog::~RemoveFileDialog()
 void RemoveFileDialog::accept()
 {
+        m_widget->emitRemovedFile ( subProject->path.mid ( m_part->projectDirectory().length() + 1 ) + "/" + fileName );
+
         QMap<QString,QString> replaceMap;
 
@@ -175,6 +176,4 @@ void RemoveFileDialog::accept()
         if (removeCheckBox->isChecked())
                 QFile::remove(subProject->path + "/" + fileName);
-
-        m_widget->emitRemovedFile ( subProject->path.mid ( m_part->projectDirectory().length() + 1 ) + "/" + fileName );
 
         QDialog::accept();

--- kdevelop/buildtools/ant/antprojectpart.cpp  #1.22:1.23
@@ -346,4 +346,7 @@ void AntProjectPart::removeFile(const QS
 void AntProjectPart::removeFiles ( const QStringList& fileList )
 {
+        kdDebug() << "Emitting removedFilesFromProject" << endl;
+        emit removedFilesFromProject(fileList);
+
         QStringList::ConstIterator it;  
         
@@ -352,7 +355,4 @@ void AntProjectPart::removeFiles ( const
                 m_sourceFiles.remove ( *it );
         }
-
-        kdDebug() << "Emitting removedFilesFromProject" << endl;
-        emit removedFilesFromProject(fileList);
 }




More information about the KDevelop-devel mailing list