From d3d7963dc0597cfd105adeaf3b0313d9b1a69010 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Thu, 12 Dec 2024 10:47:08 +0100 Subject: [PATCH] All conditions must be true to use virtual files in the selected location. Signed-off-by: Camila Ayres --- src/gui/folderwizard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/folderwizard.cpp b/src/gui/folderwizard.cpp index fe710af3dccdd..8cf29f35e43c9 100644 --- a/src/gui/folderwizard.cpp +++ b/src/gui/folderwizard.cpp @@ -621,7 +621,7 @@ void FolderWizardSelectiveSync::initializePage() bool FolderWizardSelectiveSync::validatePage() { const auto mode = bestAvailableVfsMode(); - const bool useVirtualFiles = (mode == Vfs::WindowsCfApi) || (_virtualFilesCheckBox && _virtualFilesCheckBox->isChecked()); + const bool useVirtualFiles = (mode == Vfs::WindowsCfApi) && (_virtualFilesCheckBox && _virtualFilesCheckBox->isChecked()); if (useVirtualFiles) { const auto availability = Vfs::checkAvailability(wizard()->field(QStringLiteral("sourceFolder")).toString(), mode); if (!availability) {