diff -r eb6c564192f4 -r 75d11cc05ce4 src/MainWindow.cpp --- a/src/MainWindow.cpp Tue Mar 15 17:00:54 2022 +0100 +++ b/src/MainWindow.cpp Wed Mar 16 21:26:31 2022 +0100 @@ -26,6 +26,7 @@ #include "ProfileWaters.h" #include "ProfileMashs.h" #include "ProfileStyles.h" +#include "ProfileFerments.h" #include "Setup.h" #include "PrinterDialog.h" #include "../ui/ui_MainWindow.h" @@ -255,6 +256,24 @@ } +void MainWindow::fromProfileFerments() +{ + qDebug() << Q_FUNC_INFO; + delete ProfileFermentsWindow; + this->show(); +} + + +void MainWindow::on_actionFerments_profiles_triggered() +{ + qDebug() << Q_FUNC_INFO; + ProfileFermentsWindow = new ProfileFerments(this); + QObject::connect(ProfileFermentsWindow, SIGNAL(firstWindow()), this, SLOT(fromProfileFerments())); + this->hide(); // Close the main window + ProfileFermentsWindow->show(); // Show a second window +} + + void MainWindow::fromSetup() { qDebug() << Q_FUNC_INFO;