https://bugs.documentfoundation.org/show_bug.cgi?id=80758

--- Comment #10 from Norbert Thiebaud <nthieb...@gmail.com> ---
Rishabh:

the code that mess with the behavior is in ConvertSvxConfigEntry
where it says:

// If the name has not been changed and the name is the same as
// in the default command to label map then the label can be stored
// as an empty string.
// It will be initialised again later using the command to label map.  

since that is in itself a 'hack' it may be better to build upon that:
in the 'else'
if the GetName() is empty, inject a '~' _there_
that should have the same effect, but at least we keep the crazyness at the
same place

To keep the Reset to Default behavior working you need to be able to not set
the bStrEdited bool of the associated pEntry in the case ID_DEFAULT_COMMAND

the easiest way to do that is to change the SetName(cosnt OUString& rStr) API
to SetName(cosnt OUString& rStr, bool bUserChanged = true)
{ aLabel = rStr; bStrEdited = bUserChanged; }

and in the ID_DEFAULT_COMMAND case call SetName(aSystemName, false)


Note: completely untested.. just from reading the patch and the code around
it.. so reader beware :-D

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to