summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Koller <[email protected]>2017-08-29 21:46:42 +0200
committerMartin Koller <[email protected]>2017-08-29 21:46:42 +0200
commitcc4957a84c96e6df8bc202e8af5e374eabbc15e1 (patch)
treea75a02a615982363d2b8617ecf66c8e4455e7e39
parent27d0919c45bc4d4dfbf118bed9c48f33bb6a9317 (diff)
make it compile with gcc-4.8.5
-rw-r--r--src/ksieveui/editor/sieveeditortextmodewidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ksieveui/editor/sieveeditortextmodewidget.cpp b/src/ksieveui/editor/sieveeditortextmodewidget.cpp
index 5d45fd9..f011a4a 100644
--- a/src/ksieveui/editor/sieveeditortextmodewidget.cpp
+++ b/src/ksieveui/editor/sieveeditortextmodewidget.cpp
@@ -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;