Settings tab: double click opens/closes trees
authorKahrl <kahrl@gmx.net>
Sun, 18 Oct 2015 09:03:59 +0000 (11:03 +0200)
committerKahrl <kahrl@gmx.net>
Sun, 18 Oct 2015 09:03:59 +0000 (11:03 +0200)
src/guiTable.cpp

index 8e8144af8bdd63388cf04a071022959267bd54ed..3cc95ce4fcde25bc9fba53900f7680775e2569b5 100644 (file)
@@ -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;