Fixed issue #780. Final Measurements kills Valentina.
--HG-- branch : develop
This commit is contained in:
parent
931c0de439
commit
15c93854d8
|
@ -4143,13 +4143,14 @@ void MainWindow::CreateActions()
|
|||
if (dialogFMeasurements.isNull())
|
||||
{
|
||||
dialogFMeasurements = new DialogFinalMeasurements(doc, this);
|
||||
dialogFMeasurements->setAttribute(Qt::WA_DeleteOnClose);
|
||||
connect(dialogFMeasurements.data(), &DialogFinalMeasurements::finished, this, [this](int result)
|
||||
{
|
||||
if (result == QDialog::Accepted)
|
||||
{
|
||||
doc->SetFinalMeasurements(dialogFMeasurements->FinalMeasurements());
|
||||
}
|
||||
delete dialogFMeasurements;
|
||||
dialogFMeasurements->close();
|
||||
});
|
||||
dialogFMeasurements->show();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user