Python: use the module run().__doc__ as a pretty description.

This commit is contained in:
Adriaan de Groot 2017-07-05 06:44:09 -04:00
parent f12ae5db3b
commit a72cc0eeb4

View file

@ -248,8 +248,11 @@ PythonJob::prettyName() const
QString
PythonJob::prettyStatusMessage() const
{
return tr( "Running %1 operation." )
.arg( QDir( m_workingPath ).dirName() );
if ( m_description.isEmpty() )
return tr( "Running %1 operation." )
.arg( QDir( m_workingPath ).dirName() );
else
return m_description;
}