mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-26 20:00:30 +00:00
fix - Crash on Move Tool with an active Text editor (#1569)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user