Comment 17 for bug 161107

Revision history for this message
In , Suen (suen) wrote :

I have some similar problem in Gwenview. When I try to assign additional shortcuts for "next/previous image" the shortcut works only for a single session.
When I checked the .kde/share/apps/gwenview/gwenviewui.rc file, it had a new modification timestamp and a valid looking (changes including) content.

But then I followed comment #4 and deleted the *ui.rc file, reopened gwenview, changed shortcuts and exited, and did a diff on that. One interesting difference (of the many others) was:
 - in the new file:
> <kpartgui version="47" name="gwenview" >
 - in the old file:
> <kpartgui version="46" name="gwenview" >

When I changed in the new file the version to "46" the shortcuts stop working again. Then I tried the old config file and changed the version string to "47" and changing the shortcuts etc. worked.

Similar things applied to a problem in dolphin, in which it wasn't possible to change the toolbar.
> <kpartgui version="7" name="dolphin" >
vs.
> <kpartgui version="10" name="dolphin" >

So I guess the whole reason for this problem is a wrong parsing of the config files. And that there is nothing like a warning. Developers could you please add something like: try to read the config file. If it's an old version try to read it anyway and write a new version which includes all the properties, which were understood. Or at least give a warning about an invalid *ui.rc file?

For users: delete your *ui.rc files or change the version string... I guess.

Even if the bug description is very different, I think bug #193744 is related to this one. Because in both cases the *ui.rc files are written correctly, but there is no effect at all.