Zdenek Jonak 9 years ago
commit 046c64b312

@ -24,7 +24,6 @@ class AutoForm : public IForm
{ {
public: public:
explicit AutoForm(QWidget *parent = 0) : IForm(parent) { explicit AutoForm(QWidget *parent = 0) : IForm(parent) {
m_newRec = false;
m_serviceConnected = false; m_serviceConnected = false;
m_saved = false; m_saved = false;
} }
@ -73,7 +72,6 @@ private:
QList<QWidget*> m_bindWidgets; QList<QWidget*> m_bindWidgets;
QList<IValidator*> m_validators; QList<IValidator*> m_validators;
QHash<QComboBox*, QList<ComboData> > m_bindCombos; QHash<QComboBox*, QList<ComboData> > m_bindCombos;
bool m_newRec;
void bindToUi() { void bindToUi() {
registerCombos(); registerCombos();

@ -2,6 +2,7 @@
IForm::IForm(QWidget *parent) : QWidget(parent) IForm::IForm(QWidget *parent) : QWidget(parent)
{ {
m_newRec = false;
} }
IForm::~IForm() IForm::~IForm()
@ -20,6 +21,9 @@ void IForm::setPluginId(const QString &pluginId)
void IForm::refresh() void IForm::refresh()
{ {
emit refreshEntity(); if (!m_newRec)
{
emit refreshEntity();
}
} }

@ -29,6 +29,9 @@ public slots:
private: private:
QString m_pluginId; QString m_pluginId;
protected:
bool m_newRec;
}; };
#endif // IFORM_H #endif // IFORM_H

Loading…
Cancel
Save