hopefully delete model correctly

allow_new_sellers
Martin Brodbeck 5 years ago
parent 9f30bad90b
commit 17c65a50ea

@ -49,7 +49,7 @@ void MainWindow::on_actionEditSeller_triggered()
auto dialog = std::make_unique<SellerDialog>(this);
int retCode = dialog->exec();
ui_.salesView->setModel(nullptr);
delete ui_.salesView->model();
if (retCode == QDialog::Accepted) {
marketplace_->sortSellers();

Loading…
Cancel
Save