summaryrefslogtreecommitdiff
path: root/src/menu.h
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2010-08-16 13:46:57 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2010-08-16 13:46:57 +0200
commit2aa053d7e1fcc667be038c2bd65c03611b08f06f (patch)
tree1ffafff9fa9054823aa16a36db2ba20a33c9c58d /src/menu.h
parent17c340408f2e0486db2a79b34d771059fa87b188 (diff)
media library: fix filter issues
Diffstat (limited to 'src/menu.h')
-rw-r--r--src/menu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/menu.h b/src/menu.h
index ecb2e7e1..123adb33 100644
--- a/src/menu.h
+++ b/src/menu.h
@@ -448,9 +448,17 @@ namespace NCurses
/// Checks if list is empty
/// @return true if list is empty, false otherwise
+ /// @see ReallyEmpty()
///
virtual bool Empty() const { return itsOptionsPtr->empty(); }
+ /// Checks if list is really empty since Empty() may not
+ /// be accurate if filter is set)
+ /// @return true if list is empty, false otherwise
+ /// @see Empty()
+ ///
+ virtual bool ReallyEmpty() const { return itsOptions.empty(); }
+
/// @return size of the list
///
virtual size_t Size() const;