From 77e205e48ab187d8082d4fb06577275280a9eab1 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 7 May 2015 16:12:19 +0200 Subject: [PATCH] Reload the slideshow on language change. --- src/libcalamaresui/InstallationViewStep.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/libcalamaresui/InstallationViewStep.cpp b/src/libcalamaresui/InstallationViewStep.cpp index 50c57964b..df4e12418 100644 --- a/src/libcalamaresui/InstallationViewStep.cpp +++ b/src/libcalamaresui/InstallationViewStep.cpp @@ -24,6 +24,7 @@ #include "utils/CalamaresUtilsGui.h" #include "utils/Logger.h" #include "Settings.h" +#include "utils/Retranslator.h" #include #include @@ -55,10 +56,11 @@ InstallationViewStep::InstallationViewStep( QObject* parent ) m_slideShow->engine()->addImportPath( CalamaresUtils::qmlModulesDir().absolutePath() ); - if ( !Calamares::Branding::instance()->slideshowPath().isEmpty() ) - m_slideShow->setSource( QUrl::fromLocalFile( Calamares::Branding::instance() - ->slideshowPath() ) ); - + CALAMARES_RETRANSLATE_WIDGET( m_widget, + if ( !Calamares::Branding::instance()->slideshowPath().isEmpty() ) + m_slideShow->setSource( QUrl::fromLocalFile( Calamares::Branding::instance() + ->slideshowPath() ) ); + ) innerLayout->addSpacing( CalamaresUtils::defaultFontHeight() / 2 ); innerLayout->addWidget( m_progressBar ); innerLayout->addWidget( m_label );