Fixed bug when cancel edit form on new record.

This commit is contained in:
2016-02-18 19:51:57 +01:00
parent 1bb87dcb20
commit 3d7f51f42b
3 changed files with 8 additions and 3 deletions
-2
View File
@@ -24,7 +24,6 @@ class AutoForm : public IForm
{
public:
explicit AutoForm(QWidget *parent = 0) : IForm(parent) {
m_newRec = false;
m_serviceConnected = false;
m_saved = false;
}
@@ -73,7 +72,6 @@ private:
QList<QWidget*> m_bindWidgets;
QList<IValidator*> m_validators;
QHash<QComboBox*, QList<ComboData> > m_bindCombos;
bool m_newRec;
void bindToUi() {
registerCombos();