[gtk+/portal] Add a forgotten break



commit 938960f22940ff653986050176fc11018e04fd03
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jul 6 22:51:52 2016 -0400

    Add a forgotten break
    
    Stop iterating when we've found the printer we're looking for.

 gtk/gtkprintoperation-portal.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkprintoperation-portal.c b/gtk/gtkprintoperation-portal.c
index b71c1e3..6ed37ae 100644
--- a/gtk/gtkprintoperation-portal.c
+++ b/gtk/gtkprintoperation-portal.c
@@ -348,6 +348,7 @@ find_file_printer (void)
           printers = gtk_print_backend_get_printer_list (backend);
           printer = printers->data;
           g_list_free (printers);
+          break;
         }
     }
   g_list_free (backends);


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