summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformintegration.cpp
diff options
context:
space:
mode:
authorIvan Solovev <[email protected]>2022-06-16 13:16:58 +0200
committerIvan Solovev <[email protected]>2022-06-17 20:59:21 +0200
commit2ed54dedf3783471716b21509db1f8279d5b5af8 (patch)
tree7d5e4aff56764f9055a5cbb2c2a55e7b0034577c /src/gui/kernel/qplatformintegration.cpp
parentb2fb14b7ba1db35eebf7621ead12909b35ec4042 (diff)
QMainWindow: fix restoreState() for toolbars
Restoring the toolbar state of a QMainWindow could not update QWidgetPrivate::widgetItem for the QToolBar, because at that point it was still holding the pointer to the widgetItem of the previous state. Later on, when the new state was successfully applied, the previous state was deleted, and the corresponding widgetItem was reset to nullptr. This patch explicitly resets the QToolBar's widgetItem while updating the state, so that it is later correctly updated while creating a new QWidgetItemV2. Fixes: QTBUG-102395 Pick-to: 6.4 6.3 6.2 5.15 Change-Id: I17613d62423edcc0faf85ecb0a714865a50d87e8 Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'src/gui/kernel/qplatformintegration.cpp')
0 files changed, 0 insertions, 0 deletions