diff options
author | Tomi Korpipaa <tomi.korpipaa@qt.io> | 2018-08-10 08:55:32 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@qt.io> | 2018-08-10 10:35:20 +0000 |
commit | a643bc58098cfdfc02784fe485a5fd03f6deb811 (patch) | |
tree | 2a61af9e7758bdcd3ab46ab23a5d3e2c7f2404f7 /src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp | |
parent | 800a2dbbbda87536948958bb29e02833b6562d02 (diff) |
Fix TimelineWidget QColorDialog leak
Task-number: QT3DS-2057
Change-Id: I6b2456b20cb853d5d6a054abed976b18d721b5e2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp')
-rw-r--r-- | src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp index 5845a870..89243e80 100644 --- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp +++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp @@ -533,7 +533,9 @@ QColor InspectorControlView::showColorDialog(const QColor &color) m_currentColor = color; CDialogs *dialogs = g_StudioApp.GetDialogs(); connect(dialogs, &CDialogs::onColorChanged, this, &InspectorControlView::changeColor); - return dialogs->displayColorDialog(color); + QColor currentColor = dialogs->displayColorDialog(color); + disconnect(dialogs, &CDialogs::onColorChanged, this, &InspectorControlView::changeColor); + return currentColor; } void InspectorControlView::changeColor(const QColor &color) |