diff --git a/src/Mod/Fem/Gui/TaskPostBoxes.cpp b/src/Mod/Fem/Gui/TaskPostBoxes.cpp index 37047f9883..909ca629e1 100644 --- a/src/Mod/Fem/Gui/TaskPostBoxes.cpp +++ b/src/Mod/Fem/Gui/TaskPostBoxes.cpp @@ -316,9 +316,11 @@ void TaskDlgPost::appendBox(TaskPostBox* box) void TaskDlgPost::open() { - // a transaction is already open at creation time of the pad - QString msg = QObject::tr("Edit post processing object"); - Gui::Command::openCommand(msg.toUtf8().constData()); + // only open a new command if non is pending (e.g. if the object was nely created) + if (!Gui::Command::hasPendingCommand()) { + auto text = std::string("Edit ") + m_view->getObject()->Label.getValue(); + Gui::Command::openCommand(text.c_str()); + } } void TaskDlgPost::clicked(int button)