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
0cd580b5
Commit
0cd580b5
authored
Aug 09, 2021
by
Laurent Montel
😁
Browse files
not necessary to put these dialog as pointer
parent
dd715dcd
Pipeline
#73987
passed with stage
in 23 minutes and 21 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ktnef/src/ktnefmain.cpp
View file @
0cd580b5
...
...
@@ -313,10 +313,9 @@ void KTNEFMain::extractAllFiles()
void
KTNEFMain
::
propertiesFile
()
{
KTNEFAttach
*
attach
=
mView
->
getSelection
().
at
(
0
);
QPointer
<
AttachPropertyDialog
>
dlg
=
new
AttachPropertyDialog
(
this
);
dlg
->
setAttachment
(
attach
);
dlg
->
exec
();
delete
dlg
;
AttachPropertyDialog
dlg
(
this
);
dlg
.
setAttachment
(
attach
);
dlg
.
exec
();
}
void
KTNEFMain
::
optionDefaultDir
()
...
...
@@ -461,9 +460,8 @@ void KTNEFMain::slotNewToolbarConfig()
void
KTNEFMain
::
slotShowMessageProperties
()
{
QPointer
<
MessagePropertyDialog
>
dlg
=
new
MessagePropertyDialog
(
this
,
mParser
->
message
());
dlg
->
exec
();
delete
dlg
;
MessagePropertyDialog
dlg
(
this
,
mParser
->
message
());
dlg
.
exec
();
}
void
KTNEFMain
::
slotShowMessageText
()
...
...
src/configuredialog/configuresecuritypage.cpp
View file @
0cd580b5
...
...
@@ -97,9 +97,8 @@ SecurityPageGeneralTab::SecurityPageGeneralTab(QWidget *parent)
void
SecurityPageGeneralTab
::
slotOpenExternalReferenceExceptions
()
{
QPointer
<
MessageViewer
::
RemoteContentConfigureDialog
>
dlg
=
new
MessageViewer
::
RemoteContentConfigureDialog
(
this
);
dlg
->
exec
();
delete
dlg
;
MessageViewer
::
RemoteContentConfigureDialog
dlg
(
this
);
dlg
.
exec
();
}
void
SecurityPageGeneralTab
::
slotLinkClicked
(
const
QString
&
link
)
...
...
src/editor/potentialphishingemail/potentialphishingemailwarning.cpp
View file @
0cd580b5
...
...
@@ -33,10 +33,9 @@ PotentialPhishingEmailWarning::~PotentialPhishingEmailWarning() = default;
void
PotentialPhishingEmailWarning
::
slotShowDetails
(
const
QString
&
link
)
{
if
(
link
==
QLatin1String
(
"phishingdetails"
))
{
QPointer
<
PotentialPhishingDetailDialog
>
dlg
=
new
PotentialPhishingDetailDialog
(
this
);
dlg
->
fillList
(
mPotentialPhishingEmails
);
dlg
->
exec
();
delete
dlg
;
PotentialPhishingDetailDialog
dlg
(
this
);
dlg
.
fillList
(
mPotentialPhishingEmails
);
dlg
.
exec
();
}
}
...
...
src/kmmainwidget.cpp
View file @
0cd580b5
...
...
@@ -1485,10 +1485,9 @@ void KMMainWidget::slotEmptyFolder()
void
KMMainWidget
::
slotArchiveFolder
()
{
if
(
mCurrentCollection
.
isValid
())
{
QPointer
<
KMail
::
ArchiveFolderDialog
>
archiveDialog
=
new
KMail
::
ArchiveFolderDialog
(
this
);
archiveDialog
->
setFolder
(
mCurrentCollection
);
archiveDialog
->
exec
();
delete
archiveDialog
;
KMail
::
ArchiveFolderDialog
archiveDialog
(
this
);
archiveDialog
.
setFolder
(
mCurrentCollection
);
archiveDialog
.
exec
();
}
}
...
...
src/messageactions.cpp
View file @
0cd580b5
...
...
@@ -696,9 +696,9 @@ void MessageActions::annotateMessage()
return
;
}
QPointer
<
PimCommon
::
AnnotationEditDialog
>
dialog
=
new
PimCommon
::
AnnotationEditDialog
(
mCurrentItem
,
mParent
);
dialog
->
setAttribute
(
Qt
::
WA_DeleteOnClose
);
dialog
->
exec
();
PimCommon
::
AnnotationEditDialog
dialog
(
mCurrentItem
,
mParent
);
dialog
.
setAttribute
(
Qt
::
WA_DeleteOnClose
);
dialog
.
exec
();
}
void
MessageActions
::
addWebShortcutsMenu
(
QMenu
*
menu
,
const
QString
&
text
)
...
...
src/searchdialog/searchwindow.cpp
View file @
0cd580b5
...
...
@@ -481,8 +481,8 @@ void SearchWindow::doSearch()
const
QVector
<
qint64
>
unindexedCollections
=
checkIncompleteIndex
(
searchCollections
,
recursive
);
if
(
!
unindexedCollections
.
isEmpty
())
{
QScopedPointer
<
IncompleteIndexDialog
>
dlg
(
new
IncompleteIndexDialog
(
unindexedCollections
)
)
;
dlg
->
exec
();
IncompleteIndexDialog
dlg
(
unindexedCollections
);
dlg
.
exec
();
}
if
(
!
mFolder
.
isValid
())
{
...
...
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