From af06ab0914b9586bf9dbf7cd95d4d394c0ad8015 Mon Sep 17 00:00:00 2001 From: iMoHax Date: Wed, 7 Jan 2015 12:20:42 +0300 Subject: [PATCH] disable commit on lost focus in cell --- .../java/ru/trader/view/support/cells/TextFieldCell.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/main/java/ru/trader/view/support/cells/TextFieldCell.java b/client/src/main/java/ru/trader/view/support/cells/TextFieldCell.java index 6ad28ee..1f4bd2f 100644 --- a/client/src/main/java/ru/trader/view/support/cells/TextFieldCell.java +++ b/client/src/main/java/ru/trader/view/support/cells/TextFieldCell.java @@ -74,11 +74,12 @@ public class TextFieldCell extends TableCell { public void cancelEdit() { LOG.trace("Cancel edit"); //lost focus - if (!isCommit()) commit(false); - if (isCommit()) { + //crash on scroll, disable + //if (!isCommit()) commit(false); + //if (isCommit()) { super.cancelEdit(); outItem(); - } + //} }