From 50a413d3c2d04b28a059804697989115185b95fe Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 23 Jan 2015 20:27:27 +0100 Subject: [PATCH] Only set the slideshow if the branding component has one. --- src/libcalamaresui/InstallationViewStep.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libcalamaresui/InstallationViewStep.cpp b/src/libcalamaresui/InstallationViewStep.cpp index 5e5ea0f5e..242f35a77 100644 --- a/src/libcalamaresui/InstallationViewStep.cpp +++ b/src/libcalamaresui/InstallationViewStep.cpp @@ -55,8 +55,9 @@ InstallationViewStep::InstallationViewStep( QObject* parent ) m_slideShow->engine()->addImportPath( CalamaresUtils::qmlModulesDir().absolutePath() ); - m_slideShow->setSource( QUrl::fromLocalFile( Calamares::Branding::instance() - ->slideshowPath() ) ); + if ( !Calamares::Branding::instance()->slideshowPath().isEmpty() ) + m_slideShow->setSource( QUrl::fromLocalFile( Calamares::Branding::instance() + ->slideshowPath() ) ); innerLayout->addSpacing( CalamaresUtils::defaultFontHeight() / 2 ); innerLayout->addWidget( m_progressBar );