summaryrefslogtreecommitdiff
path: root/src/uilocker.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-15 22:35:02 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-12-15 22:35:02 -0500
commit05231eab45f86e3d0d342c429e35c8f7c813ea42 (patch)
treec61701573f691aae40fc6b801060ea120eb4d617 /src/uilocker.cpp
parentf3c5cebb6e9262625105d4339a54a810d7816811 (diff)
temporary fix to keep MO locked for all processes when closing
save main window settings in closeEvent()
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();