From d4b5ca681c2703846d01498c1323b64d8a8966af Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Fri, 17 Mar 2017 15:12:33 +0100 Subject: [PATCH] Fixed bug in saving voucher. --- shop/shopform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop/shopform.cpp b/shop/shopform.cpp index d3cb461..7861b76 100644 --- a/shop/shopform.cpp +++ b/shop/shopform.cpp @@ -140,7 +140,7 @@ void ShopForm::on_saveButton_clicked() if (form->saveAsNew()) { m_voucher->setStatus(Voucher::NOT_PAID); - srv.saveVoucher(m_voucher); + srv.updateVoucher(m_voucher); createEmptyVoucher(); } else