[PATCH] Make KMainWindow::saveAutoSaveSettings() protected instead of private

Ingo Klöcker kloecker at kde.org
Sat Dec 13 16:50:22 GMT 2003


in order to fix bug http://bugs.kde.org/show_bug.cgi?id=69656 (still the 
problem with KMail/Kontact exiting if the main window is hidden in the 
system tray and a secondary window is closed) I decided that the 
cleanest solution is reimplementing KMainWindow::closeEvent(). In order 
not to loose the "auto-save" functionality 
KMainWindow::saveAutoSaveSettings() has to be called in the 
reimplementation. But unfortunately this method is a private slot. 
Would it be acceptable to make it protected so that it can be called 
from the reimplemented closeEvent() (see attached patch). According to
this change is BIC.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kmainwindow.h.diff
Type: text/x-diff
Size: 1134 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031213/92e67c45/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031213/92e67c45/attachment.sig>

More information about the kde-core-devel mailing list