[shotwell] Fix saved search for photos with unset title: Bug #743923



commit 4c745502b34879b7cd7f61f4bd332734e111c240
Author: Brian Masney <masneyb onstation org>
Date:   Tue Feb 3 18:40:39 2015 -0800

    Fix saved search for photos with unset title: Bug #743923

 src/searches/SearchBoolean.vala |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/searches/SearchBoolean.vala b/src/searches/SearchBoolean.vala
index 656a470..afe2a03 100644
--- a/src/searches/SearchBoolean.vala
+++ b/src/searches/SearchBoolean.vala
@@ -308,10 +308,9 @@ public class SearchConditionText : SearchCondition {
         
         // title
         if (SearchType.ANY_TEXT == search_type || SearchType.TITLE == search_type) {
-            string title = source.get_title();
-            if(title != null){
-                ret |= string_match(text, String.remove_diacritics(title.down()));
-            }
+            string? title = (null != source.get_title()) ?
+                String.remove_diacritics(source.get_title().down()) : null;
+            ret |= string_match(text, title);
         }
         
         // tags


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