projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba9d721
)
Settings tab: double click opens/closes trees
author
Kahrl
<kahrl@gmx.net>
Sun, 18 Oct 2015 09:03:59 +0000
(11:03 +0200)
committer
Kahrl
<kahrl@gmx.net>
Sun, 18 Oct 2015 09:03:59 +0000
(11:03 +0200)
src/guiTable.cpp
patch
|
blob
|
history
diff --git
a/src/guiTable.cpp
b/src/guiTable.cpp
index 8e8144af8bdd63388cf04a071022959267bd54ed..3cc95ce4fcde25bc9fba53900f7680775e2569b5 100644
(file)
--- a/
src/guiTable.cpp
+++ b/
src/guiTable.cpp
@@
-928,6
+928,11
@@
bool GUITable::OnEvent(const SEvent &event)
sel_doubleclick) {
sendTableEvent(sel_column, sel_doubleclick);
}
+
+ // Treeview: double click opens/closes trees
+ if (m_has_tree_column && sel_doubleclick) {
+ toggleVisibleTree(m_selected, 0, false);
+ }
}
}
return true;