[Libreoffice-bugs] [Bug 135495] Crash when switching UI to Notebookbar variant

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Aug 7 12:06:12 UTC 2020


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

Maxim Monastirsky <momonasmon at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |momonasmon at gmail.com

--- Comment #10 from Maxim Monastirsky <momonasmon at gmail.com> ---
I don't know if it's the same problem reported here, but here is one way to
make it crash:

1. Open 6.4 version of Writer.
2. Tools > Customize...
3. Don't make any changes, just close the dialog and LO.
4. Open 7.0 version of Writer using the same user profile as 6.4.
5. View > User Interface > Tabbed

=> Crash

The problem here is that just opening the customization dialog copies the
notebookbar.ui file to the user profile, and the file from 6.4 isn't compatible
with 7.0. This is related to the OptionalBox changes discussed in Bug 130513,
which at first was moved from sfx2 to vcl w/o adapting the ui files, and then
in Bug 130513 its factory function was removed, which broke loading of existing
notebookbar.ui files from the user profile.

I guess we can workaround it for now by explicitly handling sfxlo-OptionalBox
widget kind, but we really should discard existing notebookbar.ui files when an
upgrade to a major release is detected. Or even better - not use the glade ui
format for storing user customization, as it might change over time. In
addition, I think that the customization dialog should not copy anything to the
user profile, unless actual changes were made.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200807/cbe1f549/attachment.htm>


More information about the Libreoffice-bugs mailing list