Fixed bug when cancel edit form on new record.
This commit is contained in:
+5
-1
@@ -2,6 +2,7 @@
|
||||
|
||||
IForm::IForm(QWidget *parent) : QWidget(parent)
|
||||
{
|
||||
m_newRec = false;
|
||||
}
|
||||
|
||||
IForm::~IForm()
|
||||
@@ -20,6 +21,9 @@ void IForm::setPluginId(const QString &pluginId)
|
||||
|
||||
void IForm::refresh()
|
||||
{
|
||||
emit refreshEntity();
|
||||
if (!m_newRec)
|
||||
{
|
||||
emit refreshEntity();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user