Avoid using previous password when creating new file in Qt Quick GUI

This commit is contained in:
Martchus 2020-03-28 23:27:47 +01:00
parent 1c6230dbeb
commit b98483ca34
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}