[PATCH] Correct toolbar settings restoration
David Faure
dfaure at trolltech.com
Mon Mar 31 08:31:27 BST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 31 March 2003 08:37, John Firebaugh wrote:
> Waldo, Simon, this one's for you.
>
> Problem: KMainWindow doesn't restore auto-saved toolbar settings for any
> toolbars created after setAutoSaveSettings() is called. This mainly includes
> toolbars of XMLGUI child clients. To see the problem, install the kate
> incremental search plugin and start kate. Open 2 or more documents. Observe
> that it is impossible to permanantly hide the search toolbar: it always
> reappears when switching documents, or quitting and restarting kate.
>
> Solution: KToolbar::applySettings() needs to be called for toolbars of child
> GUI clients after they are added. The easiest way to do this seems to be to
> move the loop that is currently in applyMainWindowSettings() into
> finalizeGUI(). Please comment on the attached patch.
Looks fine to me.
- --
David FAURE, faure at kde.org, sponsored by TrollTech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
How to write a Makefile.am for KDE/Qt code:
http://developer.kde.org/documentation/other/makefile_am_howto.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+h+7P72KcVAmwbhARAmI9AJ90rhs/xGk098JKfjghnn9JqJM9rACfecLT
qj/oNaBAgb3/abCbglyhPIA=
=o5dH
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list