aboutsummaryrefslogtreecommitdiff
path: root/src/Body.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Body.cpp')
-rw-r--r--src/Body.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Body.cpp b/src/Body.cpp
index 54134b6..da7152d 100644
--- a/src/Body.cpp
+++ b/src/Body.cpp
@@ -346,4 +346,12 @@ namespace QuickMedia {
item->visible = string_find_case_insensitive(item->title, text);
}
}
+
+ bool Body::no_items_visible() const {
+ for(auto &item : items) {
+ if(item->visible)
+ return false;
+ }
+ return true;
+ }
} \ No newline at end of file