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

List:       pykde
Subject:    Re: [PyKDE] Problems with KApplication.quit ()
From:       Jim Bublitz <jbublitz () nwinternet ! com>
Date:       2003-08-27 18:51:53
[Download RAW message or body]

On Wednesday August 27 2003 11:20, Frederick Polgardy Jr wrote:
> If I remember correctly, this had something to do with
> out-of-order destruction of certain KDE objects (like
> KApplication before KMainWindow) due to the undefined order of
> keys in namespaces, correct?

Yes, but it's more complicated in KDE because of 
queryClose/queryExit, and the fact that they're in 
kdeui/KMainWindow and KApplication is in kdecore. Interestingly, 
the code I used works when done in Python, but not when done in 
C++ (identical code in identical place) - probably the same kind 
of "destruction order" issues. It's also odd that closing from 
the title bar button has always worked - I tried emulating that 
sequence but it still segfaulted.

The fix really belongs in KMainWindow::closeEvent I think, and 
eventually I'll have to put it there (I believe Phil is 
abolishing the module .py files from sip), but it won't be 
pleasant to do.

Jim


_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

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