Do not reset the waiting_for_printer on status change

* gtk/gtkprintunixdialog.c (printer_status_cb): Do not reset the
waiting_for_printer on status change as the default printer might
get added later.

https://bugzilla.gnome.org/show_bug.cgi?id=577642
This commit is contained in:
Chenthill Palanisamy 2013-11-05 13:30:33 +01:00 committed by Marek Kasik
parent b7f072221e
commit 1fd74de214

View File

@ -962,7 +962,9 @@ printer_status_cb (GtkPrintBackend *backend,
* of GTK_RESPONSE_OK button inside of selected_printer_changed function.
*/
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->printer_treeview));
priv->internal_printer_change = TRUE;
selected_printer_changed (selection, dialog);
priv->internal_printer_change = FALSE;
if (gtk_print_backend_printer_list_is_done (backend) &&
gtk_printer_is_default (printer) &&