Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit cc4957a8 authored by Martin Koller's avatar Martin Koller

make it compile with gcc-4.8.5

parent 27d0919c
......@@ -392,7 +392,7 @@ void SieveEditorTextModeWidget::printPreview()
bool restoreSpellCheck = mTextEdit->checkSpellingEnabled();
mTextEdit->setCheckSpellingEnabled(false);
QPointer<PimCommon::KPimPrintPreviewDialog> previewdlg = new PimCommon::KPimPrintPreviewDialog(this);
connect(previewdlg, &QPrintPreviewDialog::paintRequested, this, [this](QPrinter *printer) { mTextEdit->print(printer);
connect(previewdlg.data(), &QPrintPreviewDialog::paintRequested, this, [this](QPrinter *printer) { mTextEdit->print(printer);
});
previewdlg->exec();
delete previewdlg;
......
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