X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/d43174d0eb3d293b3bb5fbe76662241134e74d0d..2019e5afdaf7fd0ad21607848710348bbc3be256:/MainWindow.cpp?ds=inline diff --git a/MainWindow.cpp b/MainWindow.cpp index 6afabcd..877e9ac 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -292,6 +292,7 @@ void MainWindow::slotNewProject(){ GroupWidget* topGroup = dispatcher->createTopScene(); addTopGroup(topGroup); library->updateComboScene(); + library->show(); params->isCurrentProject = true; } @@ -319,6 +320,9 @@ bool MainWindow::slotCloseProject(){ break; } } + else { + doClose = true; + } if (doClose) { // removing the GroupWidget from stack QWidget *widget = stackedWidget->widget(1); @@ -369,7 +373,8 @@ void MainWindow::slotOpenBlockLibrary() { void MainWindow::slotGraphValidation() { - params->parametersValidation(); + params->getGraph()->computeOutputPatterns(5); + //params->parametersValidation(); } void MainWindow::addTopGroup(GroupWidget *_topGroup) { @@ -390,6 +395,9 @@ void MainWindow::closeEvent(QCloseEvent *event) { slotCloseProject(); event->ignore(); } + else { + library->deleteLater(); + } }