Fixed voucher saving.

closes #274
This commit is contained in:
2017-02-21 20:37:38 +01:00
parent 9e8d69827f
commit ec16d90fa4
5 changed files with 83 additions and 17 deletions
+4 -1
View File
@@ -18,6 +18,9 @@ public:
explicit ReceiptSaveForm(QSharedPointer<Voucher> voucher, QWidget *parent = 0);
~ReceiptSaveForm();
VoucherPtr selectedVoucher();
bool saveAsNew();
private slots:
void on_lineEdit_textChanged(const QString &text);
@@ -28,7 +31,7 @@ private:
ObjectBinder m_binder;
AutoTableModel<Voucher> *m_voucherModel;
bool m_saveAsNew;
QSharedPointer<Voucher> m_voucher;
VoucherPtr m_voucher;
// QDialog interface
public slots: