Add parameter to keep trailing digits in object name of copy, other little fix

This commit is contained in:
wmayer
2012-05-25 12:12:30 +02:00
committed by logari81
parent c7c874a705
commit 50bbf527dd
4 changed files with 13 additions and 12 deletions

View File

@@ -511,7 +511,6 @@ void CmdPartExport::activated(int iMsg)
if (!fn.isEmpty()) {
App::Document* pDoc = getDocument();
if (!pDoc) return; // no document
openCommand("Import Part");
QString ext = QFileInfo(fn).suffix().toLower();
if (ext == QLatin1String("step") ||
ext == QLatin1String("stp") ||
@@ -522,7 +521,6 @@ void CmdPartExport::activated(int iMsg)
else {
Gui::Application::Instance->exportTo((const char*)fn.toUtf8(),pDoc->getName(),"Part");
}
commitCommand();
}
}