parent
c04fdd6cc2
commit
70f62bf94a
|
@ -122,6 +122,7 @@ void PasswordFile::open(PasswordFileOpenFlags options)
|
||||||
}
|
}
|
||||||
m_file.open(
|
m_file.open(
|
||||||
m_path, options & PasswordFileOpenFlags::ReadOnly ? ios_base::in | ios_base::binary : ios_base::in | ios_base::out | ios_base::binary);
|
m_path, options & PasswordFileOpenFlags::ReadOnly ? ios_base::in | ios_base::binary : ios_base::in | ios_base::out | ios_base::binary);
|
||||||
|
m_openOptions = options;
|
||||||
opened();
|
opened();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -564,6 +565,7 @@ void PasswordFile::clear()
|
||||||
clearPath();
|
clearPath();
|
||||||
clearPassword();
|
clearPassword();
|
||||||
clearEntries();
|
clearEntries();
|
||||||
|
m_openOptions = PasswordFileOpenFlags::None;
|
||||||
m_extendedHeader.clear();
|
m_extendedHeader.clear();
|
||||||
m_encryptedExtendedHeader.clear();
|
m_encryptedExtendedHeader.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue