Bug#25224: marked as done (MDI template crashes on click) by John Firebaugh <jfirebaugh at kde.org>
Stephan Kulow
owner at bugs.kde.org
Sat Aug 31 04:36:38 UTC 2002
Your message with subj: MDI template crashes on click
Thank you for your bug report.
The bug that your reported no longer applies to the latest development (CVS)
version of KDE. This is most probably because the bug has been fixed, the
application has been substantially modified, or the application no longer
exists. The bug report will be closed.
has caused the attached bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I'm
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Stephan Kulow
(administrator, KDE bugs database)
(Complete bug history is available at http://bugs.kde.org/db/25/25224.html)
Received: (at submit) by bugs.kde.org; 5 May 2001 07:12:24 +0000
Received: (qmail 4718 invoked by uid 33); 5 May 2001 07:12:24 -0000
Date: 5 May 2001 07:12:24 -0000
Message-ID: <20010505071224.4717.qmail at master.kde.org>
To: submit at bugs.kde.org
Subject: MDI template crashes on click
From: Pascal.Niklaus at unibas.ch
Package: kdevelop
Version: KDE 2.1.1
Severity: normal
Installed from: Compiled From Sources
Compiler: gcc 2.95
OS: Linux
OS/Compiler notes: Not Specified
I finally found the bug which causes the crashs on 'Quit' in KDevelops MDI framework... I was just searching at the wrong place all the time ;-)
The final slotStatusMsg(...) call in slotFileQuit causes the crash, I guess because it comes to late because the statusbar or some structure has already been destroyed by the calls to w->close().
Simply removing this call solves the problem.
Pascal
void Mdidbg_okApp::slotFileQuit()
{
slotStatusMsg(i18n("Exiting..."));
saveOptions();
// close the first window, the list makes the next one the first again.
// This ensures that queryClose() is called on each window to ask for closing
KMainWindow* w;
if(memberList)
{
for(w=memberList->first(); w!=0; w=memberList->first())
{
// only close the window if the closeEvent is accepted. If the user
presses Cancel on the saveModified() dialog,
// the window and the application stay open.
if(!w->close())
break;
}
}
slotStatusMsg(i18n("Ready.")); // <=== CAUSES CRASH !!!
}
(Submitted via bugs.kde.org)
More information about the KDevelop-devel
mailing list