QPlainTextEdit widget crash a dialog if do not disable signal when closing a
dialog. --HG-- branch : develop
This commit is contained in:
parent
d08282218b
commit
dc3c9511ed
|
@ -201,6 +201,15 @@ void DialogPiecePath::ShowVisualization()
|
|||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogPiecePath::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
ui->plainTextEditFormulaWidth->blockSignals(true);
|
||||
ui->plainTextEditFormulaWidthBefore->blockSignals(true);
|
||||
ui->plainTextEditFormulaWidthAfter->blockSignals(true);
|
||||
DialogTool::closeEvent(event);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogPiecePath::ShowContextMenu(const QPoint &pos)
|
||||
{
|
||||
|
|
|
@ -65,6 +65,7 @@ protected:
|
|||
virtual void SaveData() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void ShowVisualization() Q_DECL_OVERRIDE;
|
||||
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
|
||||
|
||||
private slots:
|
||||
void ShowContextMenu(const QPoint &pos);
|
||||
|
|
|
@ -304,6 +304,17 @@ void DialogSeamAllowance::CheckState()
|
|||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogSeamAllowance::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
ui->plainTextEditFormulaWidth->blockSignals(true);
|
||||
ui->plainTextEditFormulaWidthBefore->blockSignals(true);
|
||||
ui->plainTextEditFormulaWidthAfter->blockSignals(true);
|
||||
ui->lineEditRotFormula->blockSignals(true);
|
||||
ui->lineEditLenFormula->blockSignals(true);
|
||||
DialogTool::closeEvent(event);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogSeamAllowance::UpdateList()
|
||||
{
|
||||
|
|
|
@ -63,6 +63,7 @@ protected:
|
|||
/** @brief SaveData Put dialog data in local variables */
|
||||
virtual void SaveData() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
|
||||
|
||||
protected slots:
|
||||
void UpdateList();
|
||||
|
|
Loading…
Reference in New Issue
Block a user