Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2018-05-15 13:29:45 +0300
committerKevin Ottens <kevin.ottens@nextcloud.com>2020-12-15 12:57:52 +0300
commit3272f3b72ba6cd0a1ed686cd42f18ddfee9ac21a (patch)
tree3f933cf037335ba7831ec898604e71b066e915dc /src/gui/folderwizard.cpp
parenteb0e7fa03289ae9e2f699dea493b97ecbca3c740 (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.cpp2
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;
}