Bug 68591 - methods declaration change doesn't delete old method version
Summary: methods declaration change doesn't delete old method version
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 2.1.5
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-19 18:06 UTC by Giulio Prina Ricotti
Modified: 2003-11-21 10:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giulio Prina Ricotti 2003-11-19 18:06:01 UTC
Version:           2.1.5 (using KDE 3.1.4)
Installed from:    Gentoo
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)
OS:          Linux (i686) release 2.4.20-gentoo-r7

Changing a method declaration in the source code and saving the header file makes the class methods list add the new version of the method without deleting the old version. Doing it manually using "Delete method" on the old version crashes kdevelop.

-- How to reproduce

Create a Normal KDE project using the wizard. Click on the class name, to get to the header source. Change any method declaration and press CTRL+S to save the source file. The new method declaration will appear on the list on the left. Right-click on the old declaration and click "Delete method". Say Yes to the confirm dialog, and watch kdevelop disappear.

-- Last part of backtrace (where i guess the problem is)
#0  0x415c8f67 in waitpid () from /lib/libpthread.so.0
#1  0x40bdbb2d in KCrash::defaultCrashHandler(int) ()
   from /usr/kde/3.1/lib/libkdecore.so.4
#2  0x415c7e1a in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x0817ddd1 in KAccel::metaObject() const ()
#5  0x0817dc57 in KAccel::metaObject() const ()
#6  0x080c7614 in QPtrList<KDockWidget>::deleteItem(void*) ()
#7  0x081ce2bf in KHTMLPart::metaObject() const ()
#8  0x41027be0 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#9  0x081956df in KHTMLPart::metaObject() const ()
#10 0x08193cbc in KHTMLPart::metaObject() const ()
#11 0x0819588d in KHTMLPart::metaObject() const ()
#12 0x41027be0 in QObject::activate_signal(QConnectionList*, QUObject*) ()
Comment 1 Giulio Prina Ricotti 2003-11-19 18:07:23 UTC
This should be stated as a two different bugs, but resolving the first one should also prevent the crash condition to occur (as I guess kdevelop crashes not finding the method stated in the list)
Comment 2 Amilcar do Carmo Lucas 2003-11-21 10:17:03 UTC
Solved in a strange way in kdevelop3.0.0
You can not delete a method via GUI in KDevelop3 :)