diff --git a/src/gui/owncloudsetupwizard.cpp b/src/gui/owncloudsetupwizard.cpp index ae67d3ca2a25..d8e2e7be338e 100644 --- a/src/gui/owncloudsetupwizard.cpp +++ b/src/gui/owncloudsetupwizard.cpp @@ -66,7 +66,7 @@ OwncloudSetupWizard::~OwncloudSetupWizard() _ocWizard->deleteLater(); } -static QPointer wiz = nullptr; +static QPointer owncloudSetupWizard = nullptr; void OwncloudSetupWizard::runWizard(QObject *obj, const char *amember, QWidget *parent) { @@ -78,24 +78,24 @@ void OwncloudSetupWizard::runWizard(QObject *obj, const char *amember, QWidget * Theme::instance()->setStartLoginFlowAutomatically(true); } - if (!wiz.isNull()) { + if (!owncloudSetupWizard.isNull()) { bringWizardToFrontIfVisible(); return; } - wiz = new OwncloudSetupWizard(parent); - connect(wiz, SIGNAL(ownCloudWizardDone(int)), obj, amember); + owncloudSetupWizard = new OwncloudSetupWizard(parent); + connect(owncloudSetupWizard, SIGNAL(ownCloudWizardDone(int)), obj, amember); FolderMan::instance()->setSyncEnabled(false); - wiz->startWizard(); + owncloudSetupWizard->startWizard(); } bool OwncloudSetupWizard::bringWizardToFrontIfVisible() { - if (wiz.isNull()) { + if (owncloudSetupWizard.isNull()) { return false; } - ownCloudGui::raiseDialog(wiz->_ocWizard); + ownCloudGui::raiseDialog(owncloudSetupWizard->_ocWizard); return true; }