diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 4125aed5d..27c5f65b4 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -1016,9 +1016,6 @@ void MainWindow::ClosedDialogGroup(int result) SCASSERT(dialogTool != nullptr); if (result == QDialog::Accepted) { - VMainGraphicsScene *scene = qobject_cast(currentScene); - SCASSERT(scene != nullptr); - DialogGroup *dialog = qobject_cast(dialogTool); SCASSERT(dialog != nullptr); const QDomElement group = doc->CreateGroup(pattern->getNextId(), dialog->GetName(), dialog->GetGroup());