Merge pull request #2735 from TheHX/fix_tree_checkbox

Fix Tree checkbox check/uncheck behavior
This commit is contained in:
Juan Linietsky 2015-11-18 18:59:02 -03:00
commit b4f88eb4b6
1 changed files with 5 additions and 2 deletions

View File

@ -2271,9 +2271,12 @@ bool Tree::edit_selected() {
TreeItem::Cell &c = s->cells[col];
if (c.mode==TreeItem::CELL_MODE_CHECK) {
if (c.mode==TreeItem::CELL_MODE_CUSTOM) {
s->set_checked(col, !c.checked);
item_edited(col,s);
return true;
} else if (c.mode==TreeItem::CELL_MODE_CUSTOM) {
edited_item=s;
edited_col=col;