[gnome-photos] selection-toolbar: Unbreak printing



commit 921cb791396db35d9fec74f6d9cf2eeab9624b73
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Nov 30 17:00:59 2015 +0100

    selection-toolbar: Unbreak printing
    
    Fall out from a795b5b292791b7b22614fb43be57b1d619ec259
    
    https://bugzilla.gnome.org/show_bug.cgi?id=757363

 src/photos-selection-toolbar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-selection-toolbar.c b/src/photos-selection-toolbar.c
index bb7c686..c502d93 100644
--- a/src/photos-selection-toolbar.c
+++ b/src/photos-selection-toolbar.c
@@ -219,7 +219,7 @@ photos_selection_toolbar_print_clicked (GtkButton *button, gpointer user_data)
   const gchar *urn;
 
   selection = photos_selection_controller_get_selection (priv->sel_cntrlr);
-  if (selection != NULL && selection->next == NULL) /* length == 1 */
+  if (selection == NULL || selection->next != NULL) /* length != 1 */
     return;
 
   urn = (gchar *) selection->data;


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