Fixed issue #780. Final Measurements kills Valentina.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-12-11 16:00:31 +02:00
parent 931c0de439
commit 15c93854d8

View File

@ -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();
}