mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-14 15:42:28 -05:00
Handle conversion to text in Sysinfo::getInfo().
When saving the system info from the progresslogger it shouldn't have knowledge about the format of the data provided by getInfo(). Instead of relying on the output being HTML formatted make getInfo() accept a parameter that indicates if the data is to be formatted as HTML or text. Change-Id: I733fe1a148e51b70ea1361d8feccffd7cbccd3d7
This commit is contained in:
parent
646f74937f
commit
dd0d52ee0f
3 changed files with 10 additions and 4 deletions
|
|
@ -175,8 +175,7 @@ void ProgressLoggerGui::saveErrorLog()
|
|||
"*********************************************\n";
|
||||
|
||||
file.write(info.toUtf8(), info.size());
|
||||
info = Sysinfo::getInfo();
|
||||
info.replace(QRegExp("(<[^>]+>)+"),"\n");
|
||||
info = Sysinfo::getInfo(Sysinfo::InfoText);
|
||||
file.write(info.toUtf8(), info.size());
|
||||
|
||||
// trace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue