summaryrefslogtreecommitdiff
path: root/src/uilocker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uilocker.cpp')
-rw-r--r--src/uilocker.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/uilocker.cpp b/src/uilocker.cpp
index af9b9b96..07fe7f1b 100644
--- a/src/uilocker.cpp
+++ b/src/uilocker.cpp
@@ -461,6 +461,11 @@ std::shared_ptr<UILocker::Session> UILocker::lock(Reasons reason)
return ls;
}
+bool UILocker::locked() const
+{
+ return !m_sessions.empty();
+}
+
void UILocker::unlock(Session* s)
{
auto itor = m_sessions.begin();