From b98483ca34393269a3780a109d12fb9e9def8384 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 28 Mar 2020 23:27:47 +0100 Subject: [PATCH] Avoid using previous password when creating new file in Qt Quick GUI --- quickgui/controller.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/quickgui/controller.cpp b/quickgui/controller.cpp index c0be439..adb3138 100644 --- a/quickgui/controller.cpp +++ b/quickgui/controller.cpp @@ -157,6 +157,7 @@ void Controller::create() m_file.generateRootEntry(); m_entryModel.setRootEntry(m_file.rootEntry()); + m_password.clear(); // avoid using the password of previously opened file setFileOpen(true); updateWindowTitle(); }