summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/progressloggergui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/progressloggergui.cpp')
-rw-r--r--rbutil/rbutilqt/progressloggergui.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/rbutil/rbutilqt/progressloggergui.cpp b/rbutil/rbutilqt/progressloggergui.cpp
index f6b33bc11e..2e4953222d 100644
--- a/rbutil/rbutilqt/progressloggergui.cpp
+++ b/rbutil/rbutilqt/progressloggergui.cpp
@@ -145,20 +145,20 @@ void ProgressLoggerGui::saveErrorLog()
QDir::homePath(), "*.log");
if(filename == "")
return;
-
+
QFile file(filename);
if(!file.open(QIODevice::WriteOnly))
return;
//Logger texts
- QString loggerTexts = "\n*********************************************\n"
+ QString loggerTexts = "\n*********************************************\n"
"*************** Logger *******************\n"
"*********************************************\n";
- file.write(loggerTexts.toUtf8(), loggerTexts.size());
+ file.write(loggerTexts.toUtf8(), loggerTexts.size());
+
-
int i=0;
- loggerTexts = "";
+ loggerTexts = "";
while(dp.listProgress->item(i) != NULL)
{
loggerTexts.append(dp.listProgress->item(i)->text());
@@ -166,27 +166,25 @@ void ProgressLoggerGui::saveErrorLog()
i++;
}
file.write(loggerTexts.toUtf8(), loggerTexts.size());
-
+
//systeminfo
- QString info = "\n*********************************************\n"
+ QString info = "\n*********************************************\n"
"************ SYSTEMINFO *******************\n"
"*********************************************\n";
-
+
file.write(info.toUtf8(), info.size());
info = Sysinfo::getInfo();
info.replace(QRegExp("(<[^>]+>)+"),"\n");
file.write(info.toUtf8(), info.size());
// trace
- QString trace = "\n*********************************************\n"
+ QString trace = "\n*********************************************\n"
"*********** TRACE **************************\n"
"*********************************************\n";
file.write(trace.toUtf8(), trace.size());
- trace = SysTrace::getTrace();
+ trace = SysTrace::getTrace();
file.write(trace.toUtf8(), trace.size());
- file.close();
+ file.close();
}
-
-