#2443 Replace QMessageBox with RiaLogging to avoid blocking of batch commands

This commit is contained in:
Magne Sjaastad
2018-02-02 09:37:34 +01:00
parent dc0c6d1b47
commit ba09906163
4 changed files with 7 additions and 8 deletions

View File

@@ -20,6 +20,7 @@
#include "RicExportFaultsFeature.h"
#include "RiaApplication.h"
#include "RiaLogging.h"
#include "RigEclipseCaseData.h"
#include "RigFault.h"
@@ -33,7 +34,6 @@
#include <QAction>
#include <QFileDialog>
#include <QMessageBox>
CAF_CMD_SOURCE_INIT(RicExportFaultsFeature, "RicExportFaultsFeature");
@@ -191,7 +191,7 @@ void RicExportFaultsFeature::saveFault(QString completeFilename, const RigMainGr
if (!exportFile.open(QIODevice::WriteOnly) )
{
QMessageBox::critical(NULL, "ResInsight - Export Faults", "Could not open the file :\n" + completeFilename);
RiaLogging::error("Could not open the file : " + completeFilename);
}
QTextStream stream(&exportFile);