Disable switch_row on editable tree

The edition and the switch can be in conflict which result of switching the
view while a cell is edited.
This commit is contained in:
C?dric Krier 2015-10-09 20:20:31 +02:00
parent 6e31f30e39
commit 7de8ca1813

View file

@ -572,7 +572,9 @@
td.on('click keypress', {column: i, td: td},
Sao.common.click_press(this.select_row.bind(this),
true));
td.dblclick(this.switch_row.bind(this));
if (!this.tree.editable) {
td.dblclick(this.switch_row.bind(this));
}
var widgets = this.build_widgets();
var table = widgets[0];
var row = widgets[1];