Browse Source

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

allow_new_sellers
Martin Brodbeck 4 years ago
parent
commit
a870736d72
  1. 2
      src/gui/mainwindow.cpp

2
src/gui/mainwindow.cpp

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

Loading…
Cancel
Save