aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 18dc80c..9032d15 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -210,15 +210,16 @@ void MainWindow::lockApp()
if(lockWidget != nullptr && lockWidget->isLocked)
return;
- if(settings.value("asdfg").isValid() && settings.value("lockscreen").toBool()==false){
- QMessageBox::critical(this,QApplication::applicationName()+"| Error",
- "Unable to lock App, Enable AppLock in settings First.");
- this->show();
- return;
- }
+// if(settings.value("asdfg").isValid() && settings.value("lockscreen").toBool()==false){
+// QMessageBox::critical(this,QApplication::applicationName()+"| Error",
+// "Unable to lock App, Enable AppLock in settings First.");
+// this->show();
+// return;
+// }
if(settings.value("asdfg").isValid()){
init_lock();
+ lockWidget->lock_app();
}else{
QMessageBox msgBox;
msgBox.setText("App lock is not configured.");