Fix CloseOnLastWindow caused by tool change (#2645)
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user