Remove extraneous lines from export

Corrects a merge issue from an earlier PR: the removed lines are
redundant.
This commit is contained in:
Chris Hennes
2021-02-01 00:26:18 -06:00
committed by wwmayer
parent bead9bb938
commit 5e07d708db

View File

@@ -773,9 +773,6 @@ void Application::exportTo(const char* FileName, const char* DocName, const char
std::string code = str.str();
// the original file name is required
Gui::Command::runCommand(Gui::Command::App, code.c_str());
// search for a module that is able to open the exported file because otherwise
// it doesn't need to be added to the recent files list (#0002047)
std::map<std::string, std::string> importMap = App::GetApplication().getImportFilters(te.c_str());
auto parameterGroup = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/General");
bool addToRecent = parameterGroup->GetBool("RecentIncludesExported", false);