Merge pull request #24374 from chennes/fix23777userEditMide

Part/PD: Send user edit mode to cmdSetEdit
This commit is contained in:
sliptonic
2025-10-06 11:05:58 -05:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ bool ViewProviderPart::doubleClicked()
try {
QString text = QObject::tr("Edit %1").arg(QString::fromUtf8(getObject()->Label.getValue()));
Gui::Command::openCommand(text.toUtf8());
Gui::cmdSetEdit(pcObject);
Gui::cmdSetEdit(pcObject, Gui::Application::Instance->getUserEditMode());
return true;
}
catch (const Base::Exception& e) {

View File

@@ -90,7 +90,7 @@ bool ViewProvider::doubleClicked()
try {
QString text = QObject::tr("Edit %1").arg(QString::fromUtf8(getObject()->Label.getValue()));
Gui::Command::openCommand(text.toUtf8());
Gui::cmdSetEdit(pcObject);
Gui::cmdSetEdit(pcObject, Gui::Application::Instance->getUserEditMode());
}
catch (const Base::Exception&) {
Gui::Command::abortCommand();

View File

@@ -53,7 +53,7 @@ bool ViewProviderBase::doubleClicked()
std::string Msg("Edit ");
Msg += base->Label.getValue();
Gui::Command::openCommand(Msg.c_str());
Gui::cmdSetEdit(base);
Gui::cmdSetEdit(base, Gui::Application::Instance->getUserEditMode());
}
catch (const Base::Exception&) {
Gui::Command::abortCommand();