Some refactoring in the new Wizard

This commit is contained in:
bsongis
2014-03-14 14:54:45 +01:00
parent 13e998ec2d
commit e0582cd398
8 changed files with 72 additions and 48 deletions
+3 -4
View File
@@ -185,11 +185,10 @@ void MdiChild::wizardEdit()
int row = ui->modelsList->currentRow();
if (row > 0) {
checkAndInitModel(row);
WizardDialog *wizard = new WizardDialog(this);
WizardDialog * wizard = new WizardDialog(row, this);
wizard->exec();
if (wizard->mix.complete){
ModelData &model = radioData.models[row - 1];
model.importWizardData(row - 1, wizard->mix);
if (wizard->mix.complete /*TODO rather test the exec() result?*/) {
radioData.models[row - 1] = wizard->mix;
setModified();
}
}