Fix detection of closed luks volumes (broken by new mapperName function).
This commit is contained in:
parent
aa02ae7b1c
commit
4df97ec3e7
|
@ -520,7 +520,8 @@ QString luks::mapperName(const QString& deviceNode)
|
|||
if (cmd.run(-1) && cmd.exitCode() == 0) {
|
||||
QStringList output=cmd.output().split(QStringLiteral("\n"));
|
||||
output.removeFirst();
|
||||
return QStringLiteral("/dev/mapper/") + output.first();
|
||||
if (!output.first().isEmpty())
|
||||
return QStringLiteral("/dev/mapper/") + output.first();
|
||||
}
|
||||
return QString();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue