Skip to content
Snippets Groups Projects
Commit 95913362 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: Mantis-1494: fix running message

parent fdfbe7f1
No related branches found
No related tags found
No related merge requests found
......@@ -220,6 +220,8 @@ private slots:
void UpdateMessageAfterApplicationReady(bool val);
void UpdateMessageAfterExecution(int status);
/**
*/
void OnExecButtonClicked();
......
......@@ -206,6 +206,10 @@ QtWidgetView
SIGNAL( SetApplicationReady( bool ) ),
this, SLOT( UpdateMessageAfterApplicationReady( bool ) )
);
connect(
m_Model,
SIGNAL(SetProgressReportDone(int)),
this, SLOT(UpdateMessageAfterExecution(int)) );
mainLayout->addWidget(m_Message);
otb::Wrapper::QtWidgetSimpleProgressReport* progressReport =
......@@ -611,9 +615,24 @@ QtWidgetView
}
*/
emit ExecuteAndWriteOutput();
m_Message->setText("<center><font color=\"#FF0000\">Running</font></center>");
}
emit ExecuteAndWriteOutput();
/******************************************************************************/
void
QtWidgetView
::UpdateMessageAfterExecution(int status)
{
if (status >= 0)
{
m_Message->setText("<center><font color=\"#00A000\">DONE</font></center>");
}
else
{
m_Message->setText("<center><font color=\"#FF0000\">FAILED !</font></center>");
}
}
/*******************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment