* Wrong behavior of non-automatic commit

Let zkwebui behave samely as swing
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2870364
This commit is contained in:
Carlos Ruiz 2009-12-17 03:09:44 +00:00
parent b806fd9e49
commit fc169204e1
1 changed files with 10 additions and 1 deletions

View File

@ -888,7 +888,16 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
}
}
else // Don't save
curTab.dataIgnore();
{
int newRecord= curTab.getTableModel().getNewRow(); //VOSS COM
if( newRecord == -1)
curTab.dataIgnore();
else
{
return false;
}
}
}
else // new record, but nothing changed
curTab.dataIgnore();