CollapseAll after deleting a sale (item)
This commit is contained in:
parent
634b256da7
commit
337462f010
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue