From 9b0788bdf8eafafedb5f7142dcdda60b3a80c3bd Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Thu, 5 Mar 2020 18:12:21 +0100 Subject: [PATCH] [Gui] Fix vfs dialog not showing on Windows --- src/gui/wizard/owncloudwizard.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/wizard/owncloudwizard.cpp b/src/gui/wizard/owncloudwizard.cpp index dddd5b4cf..951cc7036 100644 --- a/src/gui/wizard/owncloudwizard.cpp +++ b/src/gui/wizard/owncloudwizard.cpp @@ -345,7 +345,7 @@ void OwncloudWizard::askExperimentalVirtualFilesFeature(QWidget *receiver, const "\n\n" "The virtual files mode is mutually exclusive with selective sync. " "Currently unselected folders will be translated to online-only folders " - "and your selective sync settings will be reset.")); + "and your selective sync settings will be reset."), QMessageBox::NoButton, receiver); msgBox->addButton(tr("Enable virtual files"), QMessageBox::AcceptRole); msgBox->addButton(tr("Continue to use selective sync"), QMessageBox::RejectRole); } else { @@ -365,11 +365,10 @@ void OwncloudWizard::askExperimentalVirtualFilesFeature(QWidget *receiver, const "\n\n" "This is a new, experimental mode. If you decide to use it, please report any " "issues that come up.") - .arg(APPLICATION_DOTVIRTUALFILE_SUFFIX)); + .arg(APPLICATION_DOTVIRTUALFILE_SUFFIX), QMessageBox::NoButton, receiver); msgBox->addButton(tr("Enable experimental placeholder mode"), QMessageBox::AcceptRole); msgBox->addButton(tr("Stay safe"), QMessageBox::RejectRole); } - msgBox->setParent(receiver); connect(msgBox, &QMessageBox::finished, receiver, [callback, msgBox](int result) { callback(result == QMessageBox::AcceptRole); msgBox->deleteLater();