diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2015-03-10 13:40:04 +0100 |
---|---|---|
committer | Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> | 2015-06-16 06:36:05 +0000 |
commit | d3ad8cff175bd806da126a575025e209277e1514 (patch) | |
tree | 77c194d730532a2e2b502ffcb9d81bfe19314eeb /src/corelib/thread/qwaitcondition_win.cpp | |
parent | d7e2e943a2c10bd7b5113770574a65fd832c34c1 (diff) |
Make sure the QDockAreaLayoutInfo item_list is detached when we are going to modify it
This can lead to situations in which the gap item ends up in the
saved state
'subinfo' is owned by the item, but the const-ness is not transferred to
the pointer. So calling a non const function (unplug) that changes the
subinfo changes it in the original list as well.
This is a problem because that list might be shared with the saved state.
Change-Id: I90a5faafea5958043db610a84c069494f2e48137
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Jocelyn Turcotte (Woboq GmbH) <jturcotte@woboq.com>
Diffstat (limited to 'src/corelib/thread/qwaitcondition_win.cpp')
0 files changed, 0 insertions, 0 deletions