mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
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:
parent
eb0e7fa032
commit
3272f3b72b
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -135,7 +135,7 @@ private slots:
|
|||
|
||||
private:
|
||||
SelectiveSyncWidget *_selectiveSync;
|
||||
QCheckBox *_placeholderCheckBox;
|
||||
QCheckBox *_placeholderCheckBox = nullptr;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue