hopefully delete model correctly

This commit is contained in:
Martin Brodbeck 2018-07-26 20:42:44 +02:00
parent 9f30bad90b
commit 17c65a50ea

View file

@ -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();