Delete QWizard on destruction

This commit is contained in:
Daniel Molkentin 2013-05-29 01:20:43 +02:00
parent eec1af09c4
commit 52eca1362f
2 changed files with 3 additions and 3 deletions

View file

@ -34,7 +34,7 @@ OwncloudSetupWizard::OwncloudSetupWizard( FolderMan *folderMan, Theme *theme, QO
_checkInstallationRequest(0),
_folderMan(folderMan)
{
_ocWizard = new OwncloudWizard;
_ocWizard = new OwncloudWizard();
connect( _ocWizard, SIGNAL(connectToOCUrl( const QString& ) ),
this, SLOT(slotConnectToOCUrl( const QString& )));
@ -49,7 +49,7 @@ OwncloudSetupWizard::OwncloudSetupWizard( FolderMan *folderMan, Theme *theme, QO
OwncloudSetupWizard::~OwncloudSetupWizard()
{
// delete _ocWizard; FIXME: this crashes!
_ocWizard->deleteLater();
}
OwncloudWizard *OwncloudSetupWizard::wizard() {

View file

@ -110,7 +110,7 @@ public:
LogParagraph
};
OwncloudWizard(QWidget *parent = 0L);
OwncloudWizard(QWidget *parent = 0);
void setOCUrl( const QString& );
void setOCUser( const QString& );