mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00: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
41dc87c748
commit
fb71a90756
@ -515,7 +515,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 New Issue
Block a user