Drop a bit more special-casing for Chart's sidebar property deck
commita09cf7e76a6d90a50a373d04d717897b7f717d54
authorMike Kaganski <mike.kaganski@collabora.com>
Fri, 22 Apr 2022 13:17:09 +0000 (22 16:17 +0300)
committerMike Kaganski <mike.kaganski@collabora.com>
Fri, 22 Apr 2022 14:49:51 +0000 (22 16:49 +0200)
treed3adf07a2bf0032bcef1420aa96a915623a227b1
parent27953931d4f6a8c69b98a90c63db81ebb27cdf63
Drop a bit more special-casing for Chart's sidebar property deck

Introduced in commit 2d01ed9e8be543460e41e009fa992103a7c8d4c0
  Author Muhammet Kara <muhammet.kara@collabora.com>
  Date   Mon Nov 25 21:55:31 2019 +0300
    tdf#94288: Show chart props sidebar on activation

The problem was that ChartController::attachFrame, that called
SelectionChangeHandler::selectionChanged notification, did that
*prior* to setting its m_xFrame - and the notification failed
in ContextChangeEventMultiplexer::NotifyContextChange, that
checks the frame first. That prevented the proper context (with
correct application and context names) to arrive to listeners,
and the sidebar didn't update properly.

Changing the order of the calls should fix the original problem.

Change-Id: I9da8465af2ee4ed1f8eabed1c65d1c318f81a3f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133326
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
chart2/source/controller/main/ChartController.cxx
framework/source/services/ContextChangeEventMultiplexer.cxx