[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdevelop/parts/autoproject
From:       Amilcar do Carmo Lucas <amilcar () ida ! ing ! tu-bs ! de>
Date:       2003-04-14 9:26:29
[Download RAW message or body]

CVS commit by aclu: 

Patch by: Jens Dagerbo <jens.dagerbo (at) swipnet.se> aka teatime
A fairly nasty intermittent crash when removing a file from an automake project.


  M +3 -1      removefiledlg.cpp   1.16


--- kdevelop/parts/autoproject/removefiledlg.cpp  #1.15:1.16
@@ -122,4 +122,5 @@ void RemoveFileDialog::accept()
         }
 
+        QString fileItemName;
         FileItem *fitem = static_cast<FileItem*>(target->firstChild());
         while (fitem) {
@@ -127,4 +128,5 @@ void RemoveFileDialog::accept()
                         QListView *lv = fitem->listView();
                         lv->setSelected(fitem, false);
+                        fileItemName = fitem->name;
                         target->sources.remove(fitem);
                         break;
@@ -152,5 +154,5 @@ void RemoveFileDialog::accept()
         while ( !n.isNull() ) {
                 QDomNamedNodeMap attr = n.attributes();
-                QString fpath = subProject->path + QString("/") + fitem->name;
+                QString fpath = subProject->path + QString("/") + fileItemName;
                 QString relpath = fpath.remove(0, m_part->projectDirectory().length());
                 if ((attr.item(0).nodeValue() == relpath)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic