forked from qt-creator/qt-creator
Don't create Welcome mode pages when there is no Welcome mode
Fixes creating these pages unnecessarily when the Welcome plugin is not loaded, as well as "leaking" them in that case. Reviewed-by: con
This commit is contained in:
@@ -99,7 +99,9 @@ GettingStartedWelcomePageWidget::~GettingStartedWelcomePageWidget()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void GettingStartedWelcomePageWidget::updateExamples(const QString& examplePath, const QString& demosPath, const QString &sourcePath)
|
||||
void GettingStartedWelcomePageWidget::updateExamples(const QString &examplePath,
|
||||
const QString &demosPath,
|
||||
const QString &sourcePath)
|
||||
{
|
||||
QString demoxml = demosPath + "/qtdemo/xml/examples.xml";
|
||||
if (!QFile::exists(demoxml)) {
|
||||
|
||||
Reference in New Issue
Block a user