summaryrefslogtreecommitdiff
path: root/src/pincodemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-08 02:10:06 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-08 02:10:06 +0300
commit6b3b81988ea37207eeeb2994761e307c6b6fb340 (patch)
tree7882a30bfb0e7a855e671af9a10d574c89bfd26f /src/pincodemanager.cpp
parent5d190c3ae47aef32c1f1fe48f36dd27cec721cf3 (diff)
downloadmanaplus-6b3b81988ea37207eeeb2994761e307c6b6fb340.tar.gz
manaplus-6b3b81988ea37207eeeb2994761e307c6b6fb340.tar.bz2
manaplus-6b3b81988ea37207eeeb2994761e307c6b6fb340.tar.xz
manaplus-6b3b81988ea37207eeeb2994761e307c6b6fb340.zip
Dont allow select/delete character if any pincode modes active.
Diffstat (limited to 'src/pincodemanager.cpp')
-rw-r--r--src/pincodemanager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pincodemanager.cpp b/src/pincodemanager.cpp
index 6b254ba52..d8f2cea5a 100644
--- a/src/pincodemanager.cpp
+++ b/src/pincodemanager.cpp
@@ -171,3 +171,8 @@ void PincodeManager::closeDialogs()
mDialog = nullptr;
}
}
+
+bool PincodeManager::isBlocked()
+{
+ return mState != PincodeState::None;
+}