diff --git a/main.qml b/main.qml
index 25536f79..48fde1a9 100644
--- a/main.qml
+++ b/main.qml
@@ -2198,6 +2198,7 @@ ApplicationWindow {
     function checkInUserActivity() {
         if(rootItem.state !== "normal") return;
         if(!persistentSettings.lockOnUserInActivity) return;
+        if(passwordDialog.visible) return;
 
         // prompt password after X seconds of inactivity
         var epoch = Math.floor((new Date).getTime() / 1000);