Only set the slideshow if the branding component has one.

This commit is contained in:
Teo Mrnjavac 2015-01-23 20:27:27 +01:00
parent 9622888d1d
commit 50a413d3c2

View File

@ -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 );