diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2020-07-01 23:26:59 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2020-07-02 01:39:12 +0200 |
commit | c48e4d795e37f23b71d647247590807ab9e52223 (patch) | |
tree | 9dfe53f808529985fed3152cfcb4c5a7f0c08c92 /sfx2 | |
parent | 6ddd8673f9985afd48b3212444a942ebe37197f6 (diff) |
Fix PanelLayout Task::SetPriority warning
SetStyle will tigger a resize event, which in turn will start the
m_aPanelLayoutIdle, before it's actually prepared, resulting in
the Task::SetPriority SAL_WARN_IF triggering.
Change-Id: Ide48d6004e242cf75bb48dc9f5e8dc3aa5ff809b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97664
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/PanelLayout.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/PanelLayout.cxx b/sfx2/source/sidebar/PanelLayout.cxx index e4cf889b02ff..6a333819274b 100644 --- a/sfx2/source/sidebar/PanelLayout.cxx +++ b/sfx2/source/sidebar/PanelLayout.cxx @@ -21,11 +21,12 @@ PanelLayout::PanelLayout(vcl::Window* pParent, const OString& rID, const OUStrin , m_bInClose(false) , mxFrame(rFrame) { - SetStyle(GetStyle() | WB_DIALOGCONTROL); m_aPanelLayoutIdle.SetPriority(TaskPriority::RESIZE); m_aPanelLayoutIdle.SetInvokeHandler( LINK( this, PanelLayout, ImplHandlePanelLayoutTimerHdl ) ); m_aPanelLayoutIdle.SetDebugName("sfx2::PanelLayout m_aPanelLayoutIdle"); + SetStyle(GetStyle() | WB_DIALOGCONTROL); + // Builder will trigger resize and start Idle m_xVclContentArea = VclPtr<VclVBox>::Create(this); m_xVclContentArea->Show(); |