kdevelop-1.1 bug

Arun Sharma adsharma at sharmas.dhs.org
Fri Apr 14 04:37:43 UTC 2000


Core dump on doing a "Rebuild All" in a test application. The attached
patch fixes the problem in the FreeBSD kdevelop-1.1 port.

	-Arun


-------------- next part --------------
--- kdevelop-1.1/kdevelop/ckdevelop.cpp-	Thu Apr 13 20:26:26 2000
+++ kdevelop-1.1/kdevelop/ckdevelop.cpp	Thu Apr 13 20:28:25 2000
@@ -362,7 +362,7 @@
 void CKDevelop::slotFileSaveAll(){
     QStrList handledNames;
     TEditInfo* actual_info, *cpp_info, *header_info;
-    CEditWidget blind_widget;
+    CEditWidget *blind_widget;
     QStrList iFileList(false);
     bool mod=false;
 
@@ -420,11 +420,13 @@
           {
             QFileInfo file_info(actual_info->filename);
             bool isModified;
-            blind_widget.setName(actual_info->filename);
-            blind_widget.setText(actual_info->text);
-            blind_widget.toggleModified(true);
-            blind_widget.doSave();
-            isModified=blind_widget.isModified();
+
+	    blind_widget = new CEditWidget; 
+            blind_widget->setName(actual_info->filename);
+            blind_widget->setText(actual_info->text);
+            blind_widget->toggleModified(true);
+            blind_widget->doSave();
+            isModified=blind_widget->isModified();
 //
             cerr << "doing save " << ((!isModified) ? "success" : "failed") << "\n";
 //


More information about the KDevelop-devel mailing list