diff -r 0484a39e58fc -r b0d30697af67 src/InventorySuppliers.cpp --- a/src/InventorySuppliers.cpp Sat Mar 19 10:30:56 2022 +0100 +++ b/src/InventorySuppliers.cpp Sat Mar 19 19:22:58 2022 +0100 @@ -16,6 +16,7 @@ */ #include "InventorySuppliers.h" #include "EditSupplier.h" +#include "MainWindow.h" #include "../ui/ui_InventorySuppliers.h" #include "config.h" #include "bmsapp.h" @@ -28,8 +29,6 @@ ui->setupUi(this); emit refreshTable(); - - setWindowTitle( QString("BMSapp - %1 - Inventory Suppliers").arg(VERSIONSTRING) ); } @@ -73,15 +72,13 @@ ui->tableSuppliers->setCellWidget(ridx, 5, pWidget); query.next(); } - - setWindowTitle( QString("BMSapp - %1 - Inventory Suppliers").arg(VERSIONSTRING) ); } InventorySuppliers::~InventorySuppliers() { qDebug() << "InventorySuppliers done"; - delete ui; +// delete ui; } @@ -115,6 +112,9 @@ void InventorySuppliers::on_quitButton_clicked() { - emit firstWindow(); + qDebug() << Q_FUNC_INFO; + + MainWindow a; + a.fromInventorySuppliers(); }