From 8d3c5fd6231e0cf81a167c88c08d7478d545db5b Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 11 Nov 2024 13:41:35 +0800 Subject: [PATCH] Clear wizard static pointer on wizardClosed Signed-off-by: Claudio Cambra --- src/gui/owncloudsetupwizard.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/owncloudsetupwizard.cpp b/src/gui/owncloudsetupwizard.cpp index 40b88289a340d..09102f62429fc 100644 --- a/src/gui/owncloudsetupwizard.cpp +++ b/src/gui/owncloudsetupwizard.cpp @@ -85,6 +85,7 @@ void OwncloudSetupWizard::runWizard(QObject *obj, const char *amember, QWidget * wiz = new OwncloudSetupWizard(parent); connect(wiz, SIGNAL(ownCloudWizardDone(int)), obj, amember); + connect(wiz->_ocWizard, &OwncloudWizard::wizardClosed, obj, [] { wiz.clear(); }); FolderMan::instance()->setSyncEnabled(false); wiz->startWizard(); }