diff options
author | Kahrl <kahrl@gmx.net> | 2015-10-18 11:03:59 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2015-10-18 11:03:59 +0200 |
commit | 2364449d7a173086c2681eae267b32e5c1596b00 (patch) | |
tree | 0c0eedb3154e978b6b223bcdb3fcdeffbc0e8c4a | |
parent | ba9d7215ecc38b6a33e2984a600c13db203f6274 (diff) | |
download | minetest-2364449d7a173086c2681eae267b32e5c1596b00.tar.gz minetest-2364449d7a173086c2681eae267b32e5c1596b00.tar.bz2 minetest-2364449d7a173086c2681eae267b32e5c1596b00.zip |
Settings tab: double click opens/closes trees
-rw-r--r-- | src/guiTable.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/guiTable.cpp b/src/guiTable.cpp index 8e8144af8..3cc95ce4f 100644 --- 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; |