Clear LUKS label when closing crypt.

This commit is contained in:
Andrius Štikonas 2016-04-24 21:51:49 +01:00
parent 96ceadd3be
commit 12c03cfeff
1 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,7 @@ bool luks::supportToolFound() const
m_Create != cmdSupportNone &&
// m_Check != cmdSupportNone &&
m_UpdateUUID != cmdSupportNone &&
m_Grow != cmdSupportNone &&
m_Grow != cmdSupportNone &&
// m_Shrink != cmdSupportNone &&
m_Copy != cmdSupportNone &&
m_Move != cmdSupportNone &&
@ -313,6 +313,7 @@ bool luks::cryptClose(const QString& deviceNode)
m_innerFs = nullptr;
m_passphrase.clear();
setLabel({});
m_isCryptOpen = (m_innerFs != nullptr);