Merge pull request #24374 from chennes/fix23777userEditMide
Part/PD: Send user edit mode to cmdSetEdit
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user