Disable Luks decrypt/deactivate if operation stack is non-empty.

This commit is contained in:
Andrius Štikonas 2016-05-18 13:14:10 +01:00
parent 262bda5b3b
commit f8ecc67811
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ void MainWindow::enableActions()
const FS::luks* luksFs = dynamic_cast<const FS::luks*>(&fsRef);
actionCollection()->action(QStringLiteral("decryptPartition"))
->setEnabled(luksFs &&
->setEnabled(luksFs && operationStack().size() == 0 &&
(luksFs->canCryptOpen(part->partitionPath()) ||
luksFs->canCryptClose(part->partitionPath())));
if (luksFs) {