Part: PR6497 move return statement to new line

This commit is contained in:
Chris Hennes
2022-03-29 12:37:00 -05:00
parent 3ecd16e0bd
commit 2ecc125497
21 changed files with 150 additions and 75 deletions

View File

@@ -1004,7 +1004,8 @@ void CmdPartImport::activated(int iMsg)
if (!fn.isEmpty()) {
Gui::WaitCursor wc;
App::Document* pDoc = getDocument();
if (!pDoc) return; // no document
if (!pDoc) // no document
return;
fn = Base::Tools::escapeEncodeFilename(fn);
openCommand(QT_TRANSLATE_NOOP("Command", "Import Part"));
@@ -1065,7 +1066,8 @@ void CmdPartExport::activated(int iMsg)
QString fn = Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QString(), QString(), filter.join(QLatin1String(";;")), &select);
if (!fn.isEmpty()) {
App::Document* pDoc = getDocument();
if (!pDoc) return; // no document
if (!pDoc) // no document
return;
if (select == filter[1] ||
select == filter[3]) {
Gui::Application::Instance->exportTo((const char*)fn.toUtf8(),pDoc->getName(),"ImportGui");