Miscellaneous fixes

This commit is contained in:
jrheinlaender
2013-05-17 20:14:00 +04:30
committed by Stefan Tröger
parent 7be8911b2b
commit 2732f44b42
6 changed files with 14 additions and 12 deletions

View File

@@ -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&) {