aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.qml b/main.qml
index 997c3511..645d9c57 100644
--- a/main.qml
+++ b/main.qml
@@ -2044,6 +2044,7 @@ ApplicationWindow {
if(rootItem.state !== "normal") return;
if(!persistentSettings.lockOnUserInActivity) return;
if(passwordDialog.visible) return;
+ var inputDialogVisible = inputDialog && inputDialog.visible
// prompt password after X seconds of inactivity
var epoch = Math.floor((new Date).getTime() / 1000);
@@ -2056,9 +2057,11 @@ ApplicationWindow {
} else {
passwordDialog.showError(qsTr("Wrong password"));
}
+ if (inputDialogVisible) inputDialog.open(inputDialog.inputText)
}
passwordDialog.onRejectedCallback = function() { appWindow.showWizard(); }
+ if (inputDialogVisible) inputDialog.close()
passwordDialog.open();
}