From a72cc0eeb492a778d350f1f33991db81c9f6e026 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 5 Jul 2017 06:44:09 -0400 Subject: [PATCH] Python: use the module run().__doc__ as a pretty description. --- src/libcalamares/PythonJob.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/libcalamares/PythonJob.cpp b/src/libcalamares/PythonJob.cpp index a7922145a..6de89d184 100644 --- a/src/libcalamares/PythonJob.cpp +++ b/src/libcalamares/PythonJob.cpp @@ -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; }