diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2018-05-15 13:29:45 +0300 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-12-15 12:57:52 +0300 |
commit | 3272f3b72ba6cd0a1ed686cd42f18ddfee9ac21a (patch) | |
tree | 3f933cf037335ba7831ec898604e71b066e915dc /src/gui/folderwizard.cpp | |
parent | eb0e7fa03289ae9e2f699dea493b97ecbca3c740 (diff) |
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/
Diffstat (limited to 'src/gui/folderwizard.cpp')
-rw-r--r-- | src/gui/folderwizard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/folderwizard.cpp b/src/gui/folderwizard.cpp index 336589931..90f750d66 100644 --- a/src/gui/folderwizard.cpp +++ b/src/gui/folderwizard.cpp @@ -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; } |