Fix CloseOnLastWindow caused by tool change (#2645)

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
This commit is contained in:
Haris Gušić
2022-06-03 19:27:54 +02:00
committed by GitHub
parent 65e3a01360
commit 98c1b029e3
2 changed files with 5 additions and 5 deletions

View File

@@ -114,12 +114,12 @@ QWidget* TextTool::widget()
void TextTool::closeEditor()
{
if (!m_widget.isNull()) {
m_widget->close();
m_widget->hide();
delete m_widget;
m_widget = nullptr;
}
if (!m_confW.isNull()) {
m_confW->close();
m_confW->hide();
delete m_confW;
m_confW = nullptr;
}