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 committed by Philip
parent 7ff814790d
commit 8bb6dc6d36

View File

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