Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
28ec9939
Commit
28ec9939
authored
Nov 25, 2021
by
Laurent Montel
😁
Browse files
Make it const + remove mem leak
parent
a48d1294
Pipeline
#101255
skipped
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/editor/kmcomposerwin.cpp
View file @
28ec9939
...
...
@@ -239,6 +239,7 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg,
,
mId
(
id
)
,
mContext
(
context
)
,
mTooMyRecipientWarning
(
new
TooManyRecipientsWarning
(
this
))
,
mIncorrectIdentityFolderWarning
(
new
IncorrectIdentityFolderWarning
(
this
))
,
mPluginEditorManagerInterface
(
new
KMailPluginEditorManagerInterface
(
this
))
,
mPluginEditorGrammarManagerInterface
(
new
KMailPluginGrammarEditorManagerInterface
(
this
))
...
...
@@ -373,12 +374,11 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg,
connect
(
composerEditorNg
,
&
KMComposerEditorNg
::
selectionChanged
,
this
,
&
KMComposerWin
::
slotSelectionChanged
);
// connect(editor, &KMComposerEditor::textChanged, this, &KMComposeWin::slotEditorTextChanged);
mComposerBase
->
setEditor
(
composerEditorNg
);
mIncorrectIdentityFolderWarning
=
new
IncorrectIdentityFolderWarning
(
this
);
vbox
->
addWidget
(
mIncorrectIdentityFolderWarning
);
mAttachmentFromExternalMissing
=
new
AttachmentAddedFromExternalWarning
(
this
);
vbox
->
addWidget
(
mAttachmentFromExternalMissing
);
mTooMyRecipientWarning
=
new
TooManyRecipientsWarning
(
this
);
vbox
->
addWidget
(
mTooMyRecipientWarning
);
vbox
->
addWidget
(
mCryptoStateIndicatorWidget
);
...
...
src/editor/kmcomposerwin.h
View file @
28ec9939
...
...
@@ -678,7 +678,7 @@ private:
PimCommon
::
CustomToolsWidgetNg
*
mCustomToolsWidget
=
nullptr
;
AttachmentMissingWarning
*
mAttachmentMissing
=
nullptr
;
ExternalEditorWarning
*
mExternalEditorWarning
=
nullptr
;
TooManyRecipientsWarning
*
mTooMyRecipientWarning
=
nullptr
;
TooManyRecipientsWarning
*
const
mTooMyRecipientWarning
;
QTimer
*
mVerifyMissingAttachment
=
nullptr
;
MailCommon
::
FolderRequester
*
mFccFolder
=
nullptr
;
bool
mPreventFccOverwrite
=
false
;
...
...
@@ -691,7 +691,7 @@ private:
MessageComposer
::
StatusBarLabelToggledState
*
mStatusBarLabelToggledOverrideMode
=
nullptr
;
MessageComposer
::
StatusBarLabelToggledState
*
mStatusBarLabelSpellCheckingChangeMode
=
nullptr
;
PotentialPhishingEmailWarning
*
mPotentialPhishingEmailWarning
=
nullptr
;
IncorrectIdentityFolderWarning
*
mIncorrectIdentityFolderWarning
=
nullptr
;
IncorrectIdentityFolderWarning
*
const
mIncorrectIdentityFolderWarning
;
KMComposerGlobalAction
*
mGlobalAction
=
nullptr
;
KPIMTextEdit
::
RichTextEditorWidget
*
mRichTextEditorwidget
=
nullptr
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment