Wizard bug fixes

Fixes #1332
Fixes #1333 
```
QWidget *w = new QWidget();
w->setObjectName("parent");
QWidget *w2 = new QWidget(w);
w2->setObjectName("child 1");
QTimer *t = new QTimer(w2);
t->setObjectName("child 2");
connect(w, SIGNAL(destroyed(QObject*)), this, SLOT(debug(QObject*)));
connect(w2, SIGNAL(destroyed(QObject*)), this, SLOT(debug(QObject*)));
connect(t, SIGNAL(destroyed(QObject*)), this, SLOT(debug(QObject*)));
```

slot content:
```
qDebug()<< "Object "<< o->objectName() << " was destroyed";
```

Output:
Object  "parent"  was destroyed
Object  "child 1"  was destroyed
Object  "child 2"  was destroyed