Commit cbb097ce authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[CHANGE] replaced the word "crash" by "problem"

parent bffb1ce5
......@@ -559,8 +559,8 @@ bool WMainWindow::event( QEvent* event )
WModuleCrashEvent* e1 = dynamic_cast< WModuleCrashEvent* >( event ); // NOLINT
if ( e1 )
{
QString title = "Module crashed: " + QString::fromStdString( e1->getModule()->getName() );
QString message = "<b>Module Crashed</b><br/><br/><b>Module: </b>" + QString::fromStdString( e1->getModule()->getName() ) +
QString title = "Problem in module: " + QString::fromStdString( e1->getModule()->getName() );
QString message = "<b>Module Problem</b><br/><br/><b>Module: </b>" + QString::fromStdString( e1->getModule()->getName() ) +
"<br/><b>Message: </b>" + QString::fromStdString( e1->getMessage() );
QMessageBox::critical( this, title, message );
}
......
......@@ -72,7 +72,12 @@ std::string WQtTreeItem::getName()
void WQtTreeItem::updateTooltip( std::string progress )
{
std::string tooltip = "<b>Module: </b>" + m_module->getName() + "<br/>";
std::string tooltip = "";
if ( m_module->isCrashed()() )
{
tooltip += "<b>A problem occured. The module has been stopped. </b><br/><br/>";
}
tooltip += "<b>Module: </b>" + m_module->getName() + "<br/>";
tooltip += "<b>Progress: </b>" + progress + "<br/>";
tooltip += "<b>Connectors: </b>";
......@@ -120,7 +125,7 @@ void WQtTreeItem::updateState()
std::string progress = "waiting";
if ( m_module->isCrashed()() )
{
setText( 0, ( m_name + " - crashed" ).c_str() );
setText( 0, ( m_name + " (problem occurred)" ).c_str() );
}
else if ( p->isPending() )
{
......
......@@ -188,7 +188,7 @@ void WModuleProjectFileCombiner::apply()
// if isReady now is false, the module has crashed before it got ready -> remove the module from the list
if ( ( *iter ).second->isCrashed()() )
{
wlog::warn( "Project Loader" ) << "The module with ID " << ( *iter ).first << " crashed. Connections and properties relating to this"
wlog::warn( "Project Loader" ) << "In the module with ID " << ( *iter ).first << " a problem occurred. Connections and properties relating to this"
<< " module will fail.";
m_modules.erase( iter );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment