[gimp] app: unselect all layers when a search pattern is wrong.



commit 8dd07a7d4bb7cb182aa3e0de998522cb28995c64
Author: Jehan <jehan girinstud io>
Date:   Thu Dec 23 02:06:06 2021 +0100

    app: unselect all layers when a search pattern is wrong.

 app/widgets/gimplayertreeview.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/app/widgets/gimplayertreeview.c b/app/widgets/gimplayertreeview.c
index 5748374834..cac4df8c24 100644
--- a/app/widgets/gimplayertreeview.c
+++ b/app/widgets/gimplayertreeview.c
@@ -1317,6 +1317,7 @@ gimp_layer_tree_view_search_key_release (GtkWidget         *widget,
                                      error->message);
           gtk_widget_set_tooltip_text (view->priv->link_search_entry,
                                        tooltip);
+          gimp_image_set_selected_layers (image, NULL);
           gtk_entry_set_attributes (GTK_ENTRY (view->priv->link_search_entry),
                                     attrs);
           g_free (tooltip);
@@ -1328,6 +1329,7 @@ gimp_layer_tree_view_search_key_release (GtkWidget         *widget,
       else if (items == NULL)
         {
           /* Pattern does not match any results. */
+          gimp_image_set_selected_layers (image, NULL);
           gimp_widget_blink (view->priv->link_search_entry);
         }
       else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]