From 21598ef4b3ab48ea847a6781c29bad4c0e208a00 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 13 Oct 2020 00:22:22 +0200 Subject: [PATCH] [libcalamaresui] Update progress message only if it is non-empty This improves the situation for jobs that do not provide a status: their blank status does not overwrite the status bar, and since (previous commit) the description or name is used to start the job if the status is empty, at least **something** is displayed. SEE #1528 --- src/libcalamaresui/viewpages/ExecutionViewStep.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libcalamaresui/viewpages/ExecutionViewStep.cpp b/src/libcalamaresui/viewpages/ExecutionViewStep.cpp index fe90e1ec3..e3498c62d 100644 --- a/src/libcalamaresui/viewpages/ExecutionViewStep.cpp +++ b/src/libcalamaresui/viewpages/ExecutionViewStep.cpp @@ -191,7 +191,10 @@ void ExecutionViewStep::updateFromJobQueue( qreal percent, const QString& message ) { m_progressBar->setValue( int( percent * m_progressBar->maximum() ) ); - m_label->setText( message ); + if ( !message.isEmpty() ) + { + m_label->setText( message ); + } } void