summaryrefslogtreecommitdiff
path: root/src/webtab
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2012-12-13 11:05:20 +0100
committerMontel Laurent <montel@kde.org>2012-12-13 11:05:20 +0100
commitefdae8c5af815766e0984b278203e55248f2ae0b (patch)
treea1ba7ab55b941020c51c5bb6aba4780304dde563 /src/webtab
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-efdae8c5af815766e0984b278203e55248f2ae0b.tar.xz
Readd my patch to remove mem leak
Diffstat (limited to 'src/webtab')
-rw-r--r--src/webtab/webview.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp
index e61c1986..ac82bb87 100644
--- a/src/webtab/webview.cpp
+++ b/src/webtab/webview.cpp
@@ -1422,7 +1422,10 @@ void WebView::spellCheck()
return;
}
- Sonnet::Dialog* spellDialog = new Sonnet::Dialog(new Sonnet::BackgroundChecker(this), this);
+ Sonnet::BackgroundChecker *backgroundSpellCheck = new Sonnet::BackgroundChecker;
+ Sonnet::Dialog* spellDialog = new Sonnet::Dialog(backgroundSpellCheck, this);
+ backgroundSpellCheck->setParent(spellDialog);
+ spellDialog->setAttribute(Qt::WA_DeleteOnClose, true);
spellDialog->showSpellCheckCompletionMessage(true);
connect(spellDialog, SIGNAL(replace(QString, int, QString)), this, SLOT(spellCheckerCorrected(QString, int, QString)));