forked from qt-creator/qt-creator
QmlDesigner: fix too often deleteLater calls
Change-Id: Ia1178dc3d25702786d70d6eac8b2e8ea0bde9d7c Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
21a8a969a4
commit
5607b86816
@@ -105,6 +105,7 @@ ColorTool::~ColorTool()
|
|||||||
|
|
||||||
void ColorTool::clear()
|
void ColorTool::clear()
|
||||||
{
|
{
|
||||||
|
if (m_colorDialog)
|
||||||
m_colorDialog.data()->deleteLater();
|
m_colorDialog.data()->deleteLater();
|
||||||
|
|
||||||
AbstractFormEditorTool::clear();
|
AbstractFormEditorTool::clear();
|
||||||
|
|||||||
@@ -109,9 +109,10 @@ TextTool::~TextTool()
|
|||||||
|
|
||||||
void TextTool::clear()
|
void TextTool::clear()
|
||||||
{
|
{
|
||||||
if (textItem())
|
if (textItem()) {
|
||||||
textItem()->clearFocus();
|
textItem()->clearFocus();
|
||||||
textItem()->deleteLater();
|
textItem()->deleteLater();
|
||||||
|
}
|
||||||
|
|
||||||
AbstractFormEditorTool::clear();
|
AbstractFormEditorTool::clear();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user