Commit 16868fc7 authored by Volker Krause's avatar Volker Krause
Browse files

Re-select the product when it changes

This propagates schema changes to the other views correctly.
parent 8a084560
...@@ -119,6 +119,7 @@ MainWindow::MainWindow() : ...@@ -119,6 +119,7 @@ MainWindow::MainWindow() :
}); });
connect(ui->productListView->selectionModel(), &QItemSelectionModel::selectionChanged, this, &MainWindow::productSelected); connect(ui->productListView->selectionModel(), &QItemSelectionModel::selectionChanged, this, &MainWindow::productSelected);
connect(m_productModel, &QAbstractItemModel::dataChanged, this, &MainWindow::productSelected);
QSettings settings; QSettings settings;
settings.beginGroup(QStringLiteral("MainWindow")); settings.beginGroup(QStringLiteral("MainWindow"));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment