From 70f62bf94ae837e4ebabb371fa68094117c4c2ae Mon Sep 17 00:00:00 2001 From: Marius Kittler Date: Fri, 21 Dec 2018 17:32:31 +0100 Subject: [PATCH] Set open options Not used yet but maybe useful later --- io/passwordfile.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/io/passwordfile.cpp b/io/passwordfile.cpp index 0387af9..31802d2 100644 --- a/io/passwordfile.cpp +++ b/io/passwordfile.cpp @@ -122,6 +122,7 @@ void PasswordFile::open(PasswordFileOpenFlags options) } m_file.open( m_path, options & PasswordFileOpenFlags::ReadOnly ? ios_base::in | ios_base::binary : ios_base::in | ios_base::out | ios_base::binary); + m_openOptions = options; opened(); } @@ -564,6 +565,7 @@ void PasswordFile::clear() clearPath(); clearPassword(); clearEntries(); + m_openOptions = PasswordFileOpenFlags::None; m_extendedHeader.clear(); m_encryptedExtendedHeader.clear(); }