Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 055b1fe3 authored by Andrius Štikonas's avatar Andrius Štikonas

Make device model names prettier.

parent ca07ad5a
......@@ -170,7 +170,7 @@ Device* SfdiskBackend::scanDevice(const QString& deviceNode)
if ( d == nullptr && modelCommand.run(-1) && modelCommand.exitCode() == 0 )
{
QString name = modelCommand.output();
name = name.left(name.length() - 1);
name = name.left(name.length() - 1).replace(QLatin1Char('_'), QLatin1Char(' '));
if (name.trimmed().isEmpty()) {
// Get 'lsblk --output kname' in the cases where the model name is not available.
......
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