[Fix #3] Update basket sum after deleting an article

This commit is contained in:
Martin Brodbeck 2018-10-08 08:52:39 +02:00
parent 2e6e2f9c09
commit a870736d72

View file

@ -322,6 +322,8 @@ void MainWindow::onCancelArticleButtonClicked([[maybe_unused]] bool checked)
for (auto iter = indexes.constEnd() - 1; iter >= indexes.constBegin(); --iter) {
ui_.basketView->model()->removeRow(iter->row());
}
ui_.basketSumLabel->setText(marketplace_->getBasketSumAsString().c_str()); // Update basket sum
}
void MainWindow::onCancelSaleButtonClicked([[maybe_unused]] bool checked)