CollapseAll after deleting a sale (item)

This commit is contained in:
Martin Brodbeck 2018-10-08 09:23:03 +02:00
parent 634b256da7
commit 337462f010

View file

@ -347,6 +347,8 @@ void MainWindow::onCancelSaleButtonClicked([[maybe_unused]] bool checked)
for (auto iter = indexes.constEnd() - 1; iter >= indexes.constBegin(); --iter) {
ui_.salesView->model()->removeRow(iter->row(), iter->parent());
}
ui_.salesView->collapseAll();
}
void MainWindow::onPrintSaleReceiptButtonClicked([[maybe_unused]] bool checked)