From: Kahrl Date: Sun, 18 Oct 2015 09:03:59 +0000 (+0200) Subject: Settings tab: double click opens/closes trees X-Git-Tag: 0.4.14~594 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2364449d7a173086c2681eae267b32e5c1596b00;p=oweals%2Fminetest.git Settings tab: double click opens/closes trees --- 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;