summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-09-06 12:02:32 +0200
committerMontel Laurent <[email protected]>2015-09-06 12:02:32 +0200
commit66534853b7024ca48649df40973c5a8ee78cdcd1 (patch)
tree208d52fd76992a12868f636c74da6be369547d9d
parentdb89f9db2d2cfca88c308c2be47091f407789e55 (diff)
Fix crash
-rw-r--r--pimcommon/texteditor/richtexteditor/richtexteditfindbar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/pimcommon/texteditor/richtexteditor/richtexteditfindbar.cpp b/pimcommon/texteditor/richtexteditor/richtexteditfindbar.cpp
index 34009b9..abd833a 100644
--- a/pimcommon/texteditor/richtexteditor/richtexteditfindbar.cpp
+++ b/pimcommon/texteditor/richtexteditor/richtexteditfindbar.cpp
@@ -29,8 +29,8 @@ using namespace PimCommon;
class PimCommon::RichTextEditFindBarPrivate
{
public:
- RichTextEditFindBarPrivate()
- : mView(Q_NULLPTR)
+ RichTextEditFindBarPrivate(QTextEdit *view)
+ : mView(view)
{
}
@@ -40,7 +40,7 @@ public:
RichTextEditFindBar::RichTextEditFindBar(QTextEdit *view, QWidget *parent)
: TextEditFindBarBase(parent),
- d(new PimCommon::RichTextEditFindBarPrivate)
+ d(new PimCommon::RichTextEditFindBarPrivate(view))
{
}