https://issues.apache.org/ooo/show_bug.cgi?id=122406

            Bug ID: 122406
        Issue Type: DEFECT
           Summary: [sidebar] Switching panels disposes the UI element
           Product: General
           Version: AOO400-dev
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: ui
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
            Blocks: 121420

- New Writer document
- Activate the gallery panel in the sidebar
- select a different image from the one that is already selected
- switch to the navigator panel, select "Hyperlinks"
- Switch back to the gallery: the image you have selected is no longer selected
- Switch back to the navigator: "Hyperlinks" is no longer selected

>From the user perspective, this might be not user-friendly.
>From the "technical" aspect, this is a waste of resources, the UI element is
recreated every time the user switches panels; as side effect, unless the panel
implementation stores its state, the panel state is lost having the effect
described above.

The root cause is that sfx2::sidebar::Panel::Dispose() disposed the UI element.
trunk/main/sfx2/source/sidebar/Panel.cxx

While later initialization of the UI element when the respective deck is
activated is good for performance, destroying the panels is not.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to