Work around tooltips in treeviews selection issue #7678

When tooltips are disabled, but a tooltip column is set for a treeview,
the treeview selection behaves inconsistently. It requires a 3rd click
after expanding any child-rows to select a child.
This commit is contained in:
Robin Gareus 2018-11-01 23:20:50 +01:00
parent fe318c0cd5
commit b81fdeaa66
4 changed files with 17 additions and 6 deletions

View file

@ -187,8 +187,10 @@ EditorRegions::EditorRegions (Editor* e)
_display.set_headers_visible (true);
_display.set_rules_hint ();
/* show path as the row tooltip */
_display.set_tooltip_column (14); /* path */
if (UIConfiguration::instance().get_use_tooltips()) {
/* show path as the row tooltip */
_display.set_tooltip_column (14); /* path */
}
CellRendererText* region_name_cell = dynamic_cast<CellRendererText*>(_display.get_column_cell_renderer (0));
region_name_cell->property_editable() = true;