[gtk+] Avoid a warning out of the print dialog
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Avoid a warning out of the print dialog
- Date: Sat, 9 Apr 2011 00:49:33 +0000 (UTC)
commit 32358a58f4a5da12a5b04faad7c02b634079d7b2
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Apr 8 20:46:57 2011 -0400
Avoid a warning out of the print dialog
Reported in https://bugzilla.gnome.org/show_bug.cgi?id=647152
gtk/gtkprintunixdialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 0a7e6ac..f4a5049 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -1895,7 +1895,7 @@ selected_printer_changed (GtkTreeSelection *selection,
priv->printer_capabilities = 0;
- if (gtk_printer_is_accepting_jobs (printer))
+ if (printer != NULL && gtk_printer_is_accepting_jobs (printer))
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), GTK_RESPONSE_OK, TRUE);
priv->current_printer = printer;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]