Miscellaneous fixes
This commit is contained in:
committed by
Stefan Tröger
parent
7be8911b2b
commit
2732f44b42
@@ -50,10 +50,7 @@ ViewProvider::~ViewProvider()
|
||||
}
|
||||
|
||||
bool ViewProvider::doubleClicked(void)
|
||||
{
|
||||
std::string Msg("Edit ");
|
||||
Msg += this->pcObject->Label.getValue();
|
||||
Gui::Command::openCommand(Msg.c_str());
|
||||
{
|
||||
if (PartDesignGui::ActivePartObject != NULL) {
|
||||
// Drop into insert mode so that the user doesn't see all the geometry that comes later in the tree
|
||||
// Also, this way the user won't be tempted to use future geometry as external references for the sketch
|
||||
@@ -67,6 +64,9 @@ bool ViewProvider::doubleClicked(void)
|
||||
}
|
||||
|
||||
try {
|
||||
std::string Msg("Edit ");
|
||||
Msg += this->pcObject->Label.getValue();
|
||||
Gui::Command::openCommand(Msg.c_str());
|
||||
Gui::Command::doCommand(Gui::Command::Gui,"Gui.activeDocument().setEdit('%s',0)",this->pcObject->getNameInDocument());
|
||||
}
|
||||
catch (const Base::Exception&) {
|
||||
|
||||
Reference in New Issue
Block a user