[gnome-photos/gnome-3-12] print-operation: Use the fallback job-name when name is an empty string



commit 77cd63aadc923dd5dc47491f2195f05e64c67edc
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Mar 17 10:11:14 2014 +0100

    print-operation: Use the fallback job-name when name is an empty string

 src/photos-print-operation.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-print-operation.c b/src/photos-print-operation.c
index 4238c91..e176e14 100644
--- a/src/photos-print-operation.c
+++ b/src/photos-print-operation.c
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2013 Red Hat, Inc.
+ * Copyright © 2013, 2014 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -184,7 +184,7 @@ photos_print_operation_constructed (GObject *object)
   g_object_unref (page_setup);
 
   name = g_strdup (photos_base_item_get_name (priv->item));
-  if (name == NULL)
+  if (name == NULL || name[0] == '\0')
     {
       GFile *file;
       const gchar *uri;


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