Disable opening crypt if cryptsetup is not found.

This commit is contained in:
Andrius Štikonas 2016-04-27 14:29:48 +01:00
parent 51ef8013b1
commit e96c13b2bb
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ void luks::setMounted(bool mounted)
bool luks::canCryptOpen(const QString&) const
{
return !m_isCryptOpen && !m_isMounted;
return supportToolFound() && !m_isCryptOpen && !m_isMounted;
}
bool luks::canCryptClose(const QString&) const