Gui: fix some lint warnings

This commit is contained in:
wmayer
2023-03-24 20:12:06 +01:00
committed by wwmayer
parent b88c43c89a
commit f30a6c634a
2 changed files with 31 additions and 24 deletions

View File

@@ -115,8 +115,9 @@ void DlgProjectUtility::tryCreateArchive(const QString& source, const QString& t
str << "project_utility.createDocument(\"" << (const char*)source.toUtf8()
<< "\", \"" << (const char*)target.toUtf8() << "\")";
Gui::Command::runCommand(Gui::Command::App, str.str().c_str());
if (openFile)
if (openFile) {
Application::Instance->open((const char*)target.toUtf8(),"FreeCAD");
}
}
catch (const Base::Exception& e) {
QMessageBox::critical(this, tr("Failed to create project"), QString::fromLatin1(e.what()));