Fixed MSVS2010 build. Compiler does not support virtual template methods.

This commit is contained in:
2016-06-03 12:52:54 +02:00
parent 5eb73fb877
commit 5035c4ce05
4 changed files with 10 additions and 11 deletions
+4 -4
View File
@@ -122,11 +122,11 @@ void ShopForm::onCountChanged()
if (m_voucher->status() == Voucher::NEW && m_voucher->id() == 0)
{
srv.save(m_voucher);
srv.saveVoucher(m_voucher);
}
else
{
srv.update(m_voucher);
srv.updateVoucher(m_voucher);
}
}
@@ -147,7 +147,7 @@ void ShopForm::doTempSave(bool comboChanged)
if (!m_voucher->items().isEmpty())
{
m_voucher->setStatus(Voucher::TEMPORARY);
srv.update(m_voucher);
srv.updateVoucher(m_voucher);
}
if (comboChanged && ui->receiptCombo->currentIndex() > 0)
@@ -176,7 +176,7 @@ void ShopForm::changeReceipt()
srv.loadItems(m_voucher);
connectItemSignals();
m_voucher->setStatus(Voucher::NEW);
srv.update(m_voucher);
srv.updateVoucher(m_voucher);
m_itemsModel->setData(m_voucher->items());
ui->total->setText(m_voucher->totalPrice().toString());