Skip to content

Instantly share code, notes, and snippets.

@kahrl kahrl/a.diff
Created Oct 18, 2015

Embed
What would you like to do?
diff --git a/src/guiTable.cpp b/src/guiTable.cpp
index 8e8144a..3cc95ce 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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.