hopefully delete model correctly
This commit is contained in:
parent
9f30bad90b
commit
17c65a50ea
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue