#6771 Regression Test: Replace QMessageBox with RiaLogging::errorInMessageBox

Fix typo


Includes
This commit is contained in:
Magne Sjaastad
2020-10-13 11:19:51 +02:00
parent ef1b5a3d89
commit 03f659df0c
38 changed files with 133 additions and 232 deletions

View File

@@ -20,6 +20,7 @@
#include "RicNewPythonScriptFeature.h"
#include "RiaApplication.h"
#include "RiaLogging.h"
#include "RicRefreshScriptsFeature.h"
#include "RicScriptFeatureImpl.h"
@@ -36,7 +37,6 @@
#include <QFileInfo>
#include <QInputDialog>
#include <QLineEdit>
#include <QMessageBox>
CAF_CMD_SOURCE_INIT( RicNewPythonScriptFeature, "RicNewPythonScriptFeature" );
@@ -110,9 +110,9 @@ void RicNewPythonScriptFeature::onActionTriggered( bool isChecked )
QFile file( fullPathFilenameNewScript );
if ( !file.open( QIODevice::WriteOnly | QIODevice::Text ) )
{
QMessageBox::warning( Riu3DMainWindowTools::mainWindowWidget(),
"Script editor",
"Failed to create file\n" + fullPathFilenameNewScript );
RiaLogging::errorInMessageBox( Riu3DMainWindowTools::mainWindowWidget(),
"Script editor",
"Failed to create file\n" + fullPathFilenameNewScript );
return;
}
@@ -144,9 +144,9 @@ void RicNewPythonScriptFeature::onActionTriggered( bool isChecked )
if ( !myProcess->waitForStarted( 1000 ) )
{
QMessageBox::warning( Riu3DMainWindowTools::mainWindowWidget(),
"Script editor",
"Failed to start script editor executable\n" + scriptEditor );
RiaLogging::errorInMessageBox( Riu3DMainWindowTools::mainWindowWidget(),
"Script editor",
"Failed to start script editor executable\n" + scriptEditor );
}
}
}