UI fixes
This commit is contained in:
+1
-4
@@ -105,10 +105,7 @@ void ShopForm::on_saveButton_clicked()
|
||||
form->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
connect(form, &QDialog::accepted, [this]() {
|
||||
ShopService srv;
|
||||
m_voucher->setStatus(Voucher::NOT_PAID);
|
||||
srv.saveVoucher(m_voucher);
|
||||
m_voucher = srv.createVoucher();
|
||||
createEmptyVoucher();
|
||||
m_itemsModel->setData(m_voucher->items());
|
||||
ui->total->setText("0");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user