mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2989 Clean up errors between runs of command files.
This commit is contained in:
parent
54cb35232a
commit
477b7dd018
@ -57,10 +57,11 @@ RicfCommandFileExecutor::~RicfCommandFileExecutor()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RicfCommandFileExecutor::executeCommands(QTextStream& stream)
|
void RicfCommandFileExecutor::executeCommands(QTextStream& stream)
|
||||||
{
|
{
|
||||||
|
RicfMessages messages;
|
||||||
std::vector<RicfCommandObject*> executableCommands;
|
std::vector<RicfCommandObject*> executableCommands;
|
||||||
{
|
{
|
||||||
std::vector<RicfCommandObject*> fileCommands = RicfCommandFileReader::readCommands(stream, caf::PdmDefaultObjectFactory::instance(), &m_messages);
|
std::vector<RicfCommandObject*> fileCommands = RicfCommandFileReader::readCommands(stream, caf::PdmDefaultObjectFactory::instance(), &messages);
|
||||||
for (auto message : m_messages.m_messages)
|
for (auto message : messages.m_messages)
|
||||||
{
|
{
|
||||||
if (message.first == RicfMessages::MESSAGE_WARNING)
|
if (message.first == RicfMessages::MESSAGE_WARNING)
|
||||||
{
|
{
|
||||||
|
@ -59,8 +59,6 @@ public:
|
|||||||
static std::vector<RicfCommandObject*> prepareFileCommandsForExecution(const std::vector<RicfCommandObject*>& commandsReadFromFile);
|
static std::vector<RicfCommandObject*> prepareFileCommandsForExecution(const std::vector<RicfCommandObject*>& commandsReadFromFile);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RicfMessages m_messages;
|
|
||||||
|
|
||||||
std::map<ExportType, QString> m_exportPaths;
|
std::map<ExportType, QString> m_exportPaths;
|
||||||
QString m_lastProjectPath;
|
QString m_lastProjectPath;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user