X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/1b7818e18ed7bcf3464e307b97c6e0e6d72cc69b..3fb762e7042d9b4a1cf78556ad9ed7f117cc53ba:/NewProjectDialog.cpp diff --git a/NewProjectDialog.cpp b/NewProjectDialog.cpp index d98d04a..d8e72f6 100644 --- a/NewProjectDialog.cpp +++ b/NewProjectDialog.cpp @@ -35,7 +35,8 @@ NewProjectDialog::NewProjectDialog(Parameters *_params, QWidget *parent) : Custo QHBoxLayout *layAuto = new QHBoxLayout; autoConnClkCheck = new QCheckBox("Auto-connect blocks to main clock"); - autoConnClkCheck->setChecked(true); + autoConnClkCheck->setChecked(true); + layAuto->addWidget(autoConnClkCheck); QVBoxLayout *layAll = new QVBoxLayout; @@ -70,7 +71,7 @@ void NewProjectDialog::checkBeforeAccept() { //cout << "all ok" << endl; params->projectPath = dirProjEdit->text(); params->projectFile = params->projectPath + "/" + params->projectName + ".xml"; - params->clocks.append(freq); + params->mainClock = freq; if (autoConnClkCheck->isChecked()) { params->autoConnMainClk = true; }