diff --git a/commodity/data/commoditydata.cpp b/commodity/data/commoditydata.cpp index fe2b6ff..09ce104 100644 --- a/commodity/data/commoditydata.cpp +++ b/commodity/data/commoditydata.cpp @@ -4,6 +4,8 @@ CommodityData::CommodityData(QObject *parent) :QObject(parent) { + m_count = 0; + m_price = 0; } int CommodityData::id() const { diff --git a/core/autoform.h b/core/autoform.h index 7de9d38..02e944b 100644 --- a/core/autoform.h +++ b/core/autoform.h @@ -17,7 +17,7 @@ class AutoForm : public FormBinder { public: explicit AutoForm(QWidget *parent = 0) { - setParent(parent); + this->setParent(parent); m_serviceConnected = false; m_saved = false; }