Bug#25224: MDI template crashes on click

Pascal.Niklaus at unibas.ch Pascal.Niklaus at unibas.ch
Sat May 5 07:12:24 UTC 2001


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)


-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop-devel mailing list