diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-03 11:35:41 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-04 23:32:57 +0100 |
commit | dd0d52ee0f6750233be61155160eb35e74b908f9 (patch) | |
tree | 73083ec78b3af7df8ec04c3b91bbd26d0b368ff2 /rbutil/rbutilqt/progressloggergui.cpp | |
parent | 646f74937f00e508a5b25a003333569e907013d7 (diff) | |
download | rockbox-dd0d52ee0f6750233be61155160eb35e74b908f9.tar.gz rockbox-dd0d52ee0f6750233be61155160eb35e74b908f9.zip |
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
Diffstat (limited to 'rbutil/rbutilqt/progressloggergui.cpp')
-rw-r--r-- | rbutil/rbutilqt/progressloggergui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/progressloggergui.cpp b/rbutil/rbutilqt/progressloggergui.cpp index 41df0600f0..71485b02ea 100644 --- a/rbutil/rbutilqt/progressloggergui.cpp +++ b/rbutil/rbutilqt/progressloggergui.cpp | |||
@@ -175,8 +175,7 @@ void ProgressLoggerGui::saveErrorLog() | |||
175 | "*********************************************\n"; | 175 | "*********************************************\n"; |
176 | 176 | ||
177 | file.write(info.toUtf8(), info.size()); | 177 | file.write(info.toUtf8(), info.size()); |
178 | info = Sysinfo::getInfo(); | 178 | info = Sysinfo::getInfo(Sysinfo::InfoText); |
179 | info.replace(QRegExp("(<[^>]+>)+"),"\n"); | ||
180 | file.write(info.toUtf8(), info.size()); | 179 | file.write(info.toUtf8(), info.size()); |
181 | 180 | ||
182 | // trace | 181 | // trace |