summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-29 13:31:39 +0200
committerMontel Laurent <[email protected]>2017-08-29 13:31:39 +0200
commitc1ab522ff4996e29df46345ed992582675afa437 (patch)
treee0efa313a697583c62c708a37894cfa6cec1bfbe
parenta099bc2724cb076ebfdb8eca8325f8fd80e51060 (diff)
Fix potential crash
-rw-r--r--src/composer-ng/richtextcomposercontroler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/composer-ng/richtextcomposercontroler.cpp b/src/composer-ng/richtextcomposercontroler.cpp
index a54bc27..94991bd 100644
--- a/src/composer-ng/richtextcomposercontroler.cpp
+++ b/src/composer-ng/richtextcomposercontroler.cpp
@@ -416,7 +416,7 @@ void RichTextComposerControler::selectLinkText() const
void RichTextComposerControler::manageLink()
{
selectLinkText();
- KLinkDialog *linkDialog = new KLinkDialog(richTextComposer());
+ QPointer<KLinkDialog> linkDialog = new KLinkDialog(richTextComposer());
linkDialog->setLinkText(currentLinkText());
linkDialog->setLinkUrl(currentLinkUrl());