Do not connect KStandardAction::quit() to QApplication::quit()
Percy Camilo Triveño Aucahuasi
orgyforever at gmail.com
Wed Jan 30 21:48:10 GMT 2008
Thank you ;-)
2008/1/30, Aurélien Gâteau <aurelien.gateau at free.fr>:
> David Faure wrote:
> > On Thursday 06 December 2007, Aurélien Gâteau wrote:
> >> Hello,
> >> I just got bitten by this one, so I thought I'd share it with you.
> >> If your application implements KMainWindow::queryClose() to warn the
> >> about unsaved changes for example, do not connect
> >> to QApplication::quit() as it would bypass the queryClose(). Instead,
> >> connect it to QApplication::closeAllWindows().
> >> I had a look at my incomplete checkout of KDE and only find one
> >> kapptemplate. Attached patch fix it. Ok to commit?
> > Yes please do.
> > (IIRC this behavior was the same in kde3, right? We didn't document it
> > much back then either, but I now added something to
> Ok, done.
> I haven't checked kde3 behavior, but it's a good idea to document it in
> the action doc.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the kde-core-devel