Commit 244e4298 authored by Pekka Vuorela's avatar Pekka Vuorela

Merge pull request #37 from pvuorela/serial_linebreak

[nemo-qml-plugin-systemsettings] Remove trailing linebreak from serial number. Fixes MER#1047
parents 66d58fd4 4227bfb2
......@@ -161,7 +161,7 @@ QString AboutSettings::serial() const
QFile serial_txt("/config/serial/serial.txt");
if (serial_txt.exists()) {
serial_txt.open(QIODevice::ReadOnly);
return QString::fromUtf8(serial_txt.readAll());
return QString::fromUtf8(serial_txt.readAll()).trimmed();
} else {
return "";
}
......
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