Commit e5a20926 authored by Andrius Štikonas's avatar Andrius Štikonas

Fix device names spanning two lines.

parent cabe4861
...@@ -180,7 +180,7 @@ Device* SfdiskBackend::scanDevice(const QString& deviceNode) ...@@ -180,7 +180,7 @@ Device* SfdiskBackend::scanDevice(const QString& deviceNode)
deviceNode}); deviceNode});
if (kname.run(-1) && kname.exitCode() == 0) if (kname.run(-1) && kname.exitCode() == 0)
name = kname.output(); name = kname.output().trimmed();
} }
ExternalCommand transport(QStringLiteral("lsblk"), {QStringLiteral("--nodeps"), QStringLiteral("--noheadings"), QStringLiteral("--output"), QStringLiteral("tran"), ExternalCommand transport(QStringLiteral("lsblk"), {QStringLiteral("--nodeps"), QStringLiteral("--noheadings"), QStringLiteral("--output"), QStringLiteral("tran"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment