mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
treeview: bgo#666685 - Crash when toggling the selected status of a row
The refactoring from e01af5c5c
seems to have caused this inadvertently.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
This commit is contained in:
parent
abb7f40fb8
commit
022c576bd2
@ -10736,8 +10736,6 @@ gtk_tree_view_real_toggle_cursor_row (GtkTreeView *tree_view)
|
||||
{
|
||||
GtkRBTree *new_tree = NULL;
|
||||
GtkRBNode *new_node = NULL;
|
||||
GtkRBTree *cursor_tree = NULL;
|
||||
GtkRBNode *cursor_node = NULL;
|
||||
GtkTreePath *cursor_path = NULL;
|
||||
|
||||
if (!gtk_widget_has_focus (GTK_WIDGET (tree_view)))
|
||||
@ -10750,8 +10748,8 @@ gtk_tree_view_real_toggle_cursor_row (GtkTreeView *tree_view)
|
||||
tree_view->priv->cursor_node);
|
||||
|
||||
_gtk_tree_selection_internal_select_node (tree_view->priv->selection,
|
||||
cursor_node,
|
||||
cursor_tree,
|
||||
tree_view->priv->cursor_node,
|
||||
tree_view->priv->cursor_tree,
|
||||
cursor_path,
|
||||
GTK_TREE_SELECT_MODE_TOGGLE,
|
||||
FALSE);
|
||||
|
Loading…
Reference in New Issue
Block a user