提交 5a1752d5 编写于 作者: S serge-rider

#5269 Reject changes - reset current row

上级 af9bbc2d
......@@ -615,7 +615,7 @@ public abstract class LightGrid extends Canvas {
savedFocus.row = Math.min(savedFocus.row, itemCount - 1);
}
savedFocus.col = Math.min(savedFocus.col, getColumnCount() - 1);
if (savedFocus.row >= 0) setFocusItem(savedFocus.row);
setFocusItem(savedFocus.row);
if (savedFocus.col >= 0) setFocusColumn(savedFocus.col);
if (savedFocus.isValid()) selectCell(savedFocus);
}
......
......@@ -103,7 +103,7 @@ public class ResultSetPropertyTester extends PropertyTester
if ("inline".equals(expectedValue)) {
return !rsv.isAttributeReadOnly(attr);
} else {
return true;
return rsv.getCurrentRow() != null;
}
} else if ("add".equals(expectedValue)) {
return rsv.isInsertable();
......
......@@ -3078,6 +3078,9 @@ public class ResultSetViewer extends Viewer
}
try {
createDataPersister(true).rejectChanges();
if (model.getAllRows().isEmpty()) {
curRow = null;
}
} catch (DBException e) {
log.debug(e);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册