summaryrefslogtreecommitdiff
path: root/src/SearchFilter.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 15:55:20 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 15:55:20 +0100
commitf6140ff1c9ec493d947da5b346508846e7a1a06f (patch)
treec01b9164ee4b0d46b6670ccee45f6181c6237d7f /src/SearchFilter.vala
parent0f67b3cc674377559e66c5a6729fd499049a992f (diff)
parent2492891f112caac6076ce49721d9d5d78a152c3a (diff)
Update upstream source from tag 'upstream/0.26.4'
Update to upstream version '0.26.4' with Debian dir fae3cc48a8ec2f37979206f90dc828cbebee14c4
Diffstat (limited to 'src/SearchFilter.vala')
-rw-r--r--src/SearchFilter.vala11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/SearchFilter.vala b/src/SearchFilter.vala
index 04e5593..fba5488 100644
--- a/src/SearchFilter.vala
+++ b/src/SearchFilter.vala
@@ -204,12 +204,8 @@ public abstract class DefaultSearchViewFilter : SearchViewFilter {
} else if (source is Photo) {
Photo photo = source as Photo;
if (photo.get_master_file_format() == PhotoFileFormat.RAW) {
- if (photo.is_raw_developer_available(RawDeveloper.CAMERA)) {
- if (!show_media_photos && !show_media_raw)
- return false;
- } else if (!show_media_raw) {
+ if (!show_media_photos && !show_media_raw)
return false;
- }
} else if (!show_media_photos)
return false;
}
@@ -1170,7 +1166,9 @@ public class SearchFilterToolbar : Gtk.Revealer {
private void on_media_context_changed(bool has_photos, bool has_videos, bool has_raw,
bool has_flagged) {
- if (has_photos)
+ if (has_photos || has_raw)
+ // As a user, I would expect, that a raw photo is still a photo.
+ // Let's enable the photo button even if there ar only raw photos.
toolbtn_photos.set_icon_name(Resources.ICON_FILTER_PHOTOS);
else
toolbtn_photos.set_icon_name(Resources.ICON_FILTER_PHOTOS_DISABLED);
@@ -1391,4 +1389,3 @@ public class SearchFilterToolbar : Gtk.Revealer {
search_box.get_focus();
}
}
-