do not use doCommand without using format string, add overloaded method of runCommand

This commit is contained in:
wmayer
2016-09-15 18:53:37 +02:00
parent a4aae8cca5
commit e8554cc77a
17 changed files with 60 additions and 47 deletions

View File

@@ -327,7 +327,7 @@ bool TaskDlgBooleanParameters::accept()
for (std::vector<std::string>::const_iterator it = bodies.begin(); it != bodies.end(); ++it)
str << "App.ActiveDocument." << *it << ",";
str << "]";
Gui::Command::doCommand(Gui::Command::Doc,str.str().c_str());
Gui::Command::runCommand(Gui::Command::Doc,str.str().c_str());
}
catch (const Base::Exception& e) {
QMessageBox::warning(parameter, tr("Boolean: Accept: Input error"), QString::fromLatin1(e.what()));