diff options
author | Theo Linkspfeifer <lastonestanding@tutanota.com> | 2021-10-08 21:20:01 +0200 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2021-10-08 21:20:01 +0200 |
commit | e5d6090c8c35d4f9099a35b530de75d03bb500f2 (patch) | |
tree | 901cf2c342e5b01023583c78de05223b6f19981c | |
parent | 55725a7e437cdd3335ea8e50f5b44541eed839c9 (diff) | |
download | exo-e5d6090c8c35d4f9099a35b530de75d03bb500f2.tar.gz |
Dont reduce selection in single click mode (Issue #71)
In order to prevent a crash
-rw-r--r-- | exo/exo-icon-view.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/exo/exo-icon-view.c b/exo/exo-icon-view.c index e9bafb5..6d786ea 100644 --- a/exo/exo-icon-view.c +++ b/exo/exo-icon-view.c @@ -2511,10 +2511,12 @@ exo_icon_view_button_release_event (GtkWidget *widget, exo_icon_view_item_activated (icon_view, path); gtk_tree_path_free (path); } - - /* reduce the selection to just the clicked item */ - exo_icon_view_unselect_all_internal (icon_view); - exo_icon_view_select_item (icon_view, item); + else + { + /* reduce the selection to just the clicked item */ + exo_icon_view_unselect_all_internal (icon_view); + exo_icon_view_select_item (icon_view, item); + } } /* reset the last single clicked item */ |