Disable opening crypt if cryptsetup is not found.
This commit is contained in:
parent
51ef8013b1
commit
e96c13b2bb
|
@ -210,7 +210,7 @@ void luks::setMounted(bool mounted)
|
||||||
|
|
||||||
bool luks::canCryptOpen(const QString&) const
|
bool luks::canCryptOpen(const QString&) const
|
||||||
{
|
{
|
||||||
return !m_isCryptOpen && !m_isMounted;
|
return supportToolFound() && !m_isCryptOpen && !m_isMounted;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool luks::canCryptClose(const QString&) const
|
bool luks::canCryptClose(const QString&) const
|
||||||
|
|
Loading…
Reference in New Issue