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:
Dominik Riebeling 2013-11-03 11:35:41 +01:00
parent 646f74937f
commit dd0d52ee0f
3 changed files with 10 additions and 4 deletions

View file

@ -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