remove Application::runPythonCode
This commit is contained in:
@@ -679,7 +679,7 @@ void DlgFilletEdges::changeEvent(QEvent *e)
|
||||
int id = model->data(model->index(i, 0), Qt::UserRole).toInt();
|
||||
model->setData(model->index(i, 0), QVariant(tr("Edge%1").arg(id)));
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
QWidget::changeEvent(e);
|
||||
}
|
||||
@@ -936,7 +936,7 @@ bool DlgFilletEdges::accept()
|
||||
"del __fillets__\n"
|
||||
"FreeCADGui.ActiveDocument.%2.Visibility = False\n")
|
||||
.arg(name).arg(shape);
|
||||
Gui::Application::Instance->runPythonCode((const char*)code.toLatin1());
|
||||
Gui::Command::runCommand(Gui::Command::App, code.toLatin1());
|
||||
activeDoc->commitTransaction();
|
||||
activeDoc->recompute();
|
||||
if (d->fillet) {
|
||||
|
||||
Reference in New Issue
Block a user