Part/PD: Send current edit mode to cmdSetEdit

This commit is contained in:
Chris Hennes
2025-10-01 22:38:38 -05:00
parent bae76a4dc0
commit f34f15dc60
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();