StudioWelcome: do not crash if StudioWelcome can not be loaded

Change-Id: Ifc543842d85598cf8b8be16478ff9d66aa4d0592
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Tim Jenssen
2024-01-05 16:07:06 +01:00
parent 81421c2c8e
commit 10ba9b63a5

View File

@@ -759,7 +759,8 @@ WelcomeMode::WelcomeMode()
m_dataModelDownloader->setForceDownload(true);
connect(m_dataModelDownloader, &DataModelDownloader::progressChanged, this, [this](){
m_quickWidget->rootObject()->setProperty("loadingProgress", m_dataModelDownloader->progress());
if (m_quickWidget->rootObject())
m_quickWidget->rootObject()->setProperty("loadingProgress", m_dataModelDownloader->progress());
});
connect(m_dataModelDownloader, &DataModelDownloader::finished, this, [this, welcomePagePath]() {