fix - Crash on Move Tool with an active Text editor (#1569)

This commit is contained in:
Yurii Puchkov
2021-04-20 18:35:08 +03:00
committed by GitHub
parent 55e61b8743
commit 2875ac951d
5 changed files with 56 additions and 22 deletions

View File

@@ -83,12 +83,15 @@ QWidget* TextTool::widget()
void TextTool::closeEditor()
{
if (!m_widget.isNull()) {
disconnect(
m_widget, &TextWidget::textUpdated, this, &TextTool::updateText);
m_widget->close();
delete m_widget;
m_widget = nullptr;
}
if (!m_confW.isNull()) {
m_confW->close();
delete m_confW;
m_confW = nullptr;
}
}
QWidget* TextTool::configurationWidget()