Commit 8d1869f5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix log

parent c061f691
......@@ -52,3 +52,7 @@ void LogWidget::addErrorLogEntry( const QString &log )
mCustomLogWidget->addErrorLogEntry(log);
}
QString LogWidget::toHtml() const
{
return mCustomLogWidget->toHtml();
}
......@@ -33,6 +33,7 @@ public:
void addInfoLogEntry( const QString& log );
void addErrorLogEntry( const QString& log );
void clear();
QString toHtml() const;
private:
KPIM::CustomLogWidget *mCustomLogWidget;
......
......@@ -44,6 +44,9 @@
#include <mailcommon/kernel/mailkernel.h>
#include <mailcommon/filter/filtermanager.h>
#include "pimcommon/util/pimutil.h"
#include <Akonadi/Control>
#include <KStandardAction>
......@@ -109,7 +112,8 @@ void PimSettingExporterWindow::setupActions(bool canZipFile)
void PimSettingExporterWindow::slotSaveLog()
{
//TODO
const QString filter(QLatin1String("*.txt"));
PimCommon::Util::saveTextAs(mLogWidget->toHtml(), filter, this);
}
void PimSettingExporterWindow::slotBackupData()
......
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