[patch] KShortcutList and KGlobalShortcut

Olivier Goffart ogoffart at tiscalinet.be
Sat Jul 24 18:54:37 BST 2004


Le Jeudi 22 Juillet 2004 15:18, Olivier Goffart a écrit :
> While fixing the Kopete bug 81923 i seen a problem in kdelibs.
>
> To read the global shortcut from the config file, we call
> KGlobalShortcut::readSettings()
> This will load the settings from a group called  "Globals Shortcuts".
>
> When we configure shortcut with KKeyDialog::configure , settings are saved
> to the group called "Shortcuts".
>
> Of course that will not work, the two groups are not the same.
> So i work arounded the problem in Kopete and i added a call to
> KGlobalShortcut::readSettings()  which write settings in the correct group.
> but then the shortcuts are writed twice in the config file, in two
> different group.
>
>
> KKeyDialog::configure write it in the wrong group simply because
> KShortcutList forget the group.
> The attached patch, fix the problem correctly in kdelibs.
>
> Ok to commit ?

Could i have a comment on this?  
If it is Ok , wrong , or just not welcome in KDE 3.3




More information about the kde-core-devel mailing list