FolderWizard: fix crash when experimental feature are disabled

The _placeholderCheckBox only exists if the experimental features are enabled

Found via the crash reporter
https://sentry.io/owncloud/desktop-win-and-mac/issues/556407777/
This commit is contained in:
Olivier Goffart 2018-05-15 12:29:45 +02:00 committed by Kevin Ottens
parent eb0e7fa032
commit 3272f3b72b
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2
2 changed files with 2 additions and 2 deletions

View file

@ -524,7 +524,7 @@ void FolderWizardSelectiveSync::initializePage()
bool FolderWizardSelectiveSync::validatePage()
{
wizard()->setProperty("selectiveSyncBlackList", QVariant(_selectiveSync->createBlackList()));
wizard()->setProperty("usePlaceholders", QVariant(_placeholderCheckBox->isChecked()));
wizard()->setProperty("usePlaceholders", QVariant(_placeholderCheckBox && _placeholderCheckBox->isChecked()));
return true;
}

View file

@ -135,7 +135,7 @@ private slots:
private:
SelectiveSyncWidget *_selectiveSync;
QCheckBox *_placeholderCheckBox;
QCheckBox *_placeholderCheckBox = nullptr;
};
/**