remove Application::runPythonCode

This commit is contained in:
wmayer
2016-09-15 23:14:31 +02:00
parent 99d9fadb0a
commit 947f9575de
19 changed files with 118 additions and 140 deletions

View File

@@ -57,6 +57,7 @@
#include <App/Document.h>
#include <Gui/Application.h>
#include <Gui/Command.h>
#include <Gui/Document.h>
#include <QDomDocument>
@@ -212,7 +213,7 @@ QString DocumentRecovery::createProjectFile(const QString& documentXml)
str << doctools << "\n";
str << "createDocument(\"" << (const char*)source.toUtf8()
<< "\", \"" << (const char*)dest.toUtf8() << "\")";
Application::Instance->runPythonCode(str.str().c_str());
Gui::Command::runCommand(Gui::Command::App, str.str().c_str());
return dest;
}