Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KNotes
Commits
7f265352
Commit
7f265352
authored
Jul 28, 2022
by
Laurent Montel
Browse files
KMessageBox::sorry is deprecated in kf5.97
parent
e09a79f7
Pipeline
#210023
passed with stage
in 3 minutes and 42 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
noteshared/src/network/notesnetworksender.cpp
View file @
7f265352
...
...
@@ -71,7 +71,7 @@ void NotesNetworkSender::slotWritten(qint64)
void
NotesNetworkSender
::
slotError
()
{
KMessageBox
::
sorry
(
nullptr
,
i18n
(
"Communication error: %1"
,
m_socket
->
errorString
()));
KMessageBox
::
error
(
nullptr
,
i18n
(
"Communication error: %1"
,
m_socket
->
errorString
()));
slotClosed
();
}
...
...
noteshared/src/noteutils.cpp
View file @
7f265352
...
...
@@ -28,7 +28,7 @@ bool NoteUtils::sendToMail(QWidget *parent, const QString &title, const QString
// get the mail action command
const
QStringList
cmd_list
=
NoteShared
::
NoteSharedGlobalConfig
::
mailAction
().
split
(
QLatin1Char
(
' '
),
Qt
::
SkipEmptyParts
);
if
(
cmd_list
.
isEmpty
())
{
KMessageBox
::
sorry
(
parent
,
i18n
(
"Please configure send mail action."
));
KMessageBox
::
error
(
parent
,
i18n
(
"Please configure send mail action."
));
return
false
;
}
KProcess
mail
;
...
...
@@ -43,7 +43,7 @@ bool NoteUtils::sendToMail(QWidget *parent, const QString &title, const QString
}
if
(
!
mail
.
startDetached
())
{
KMessageBox
::
sorry
(
parent
,
i18n
(
"Unable to start the mail process."
));
KMessageBox
::
error
(
parent
,
i18n
(
"Unable to start the mail process."
));
return
false
;
}
return
true
;
...
...
@@ -56,7 +56,7 @@ void NoteUtils::sendToNetwork(QWidget *parent, const QString &title, const QStri
if
(
hostDlg
->
exec
())
{
const
QString
host
=
hostDlg
->
host
();
if
(
host
.
isEmpty
())
{
KMessageBox
::
sorry
(
parent
,
i18n
(
"The host cannot be empty."
));
KMessageBox
::
error
(
parent
,
i18n
(
"The host cannot be empty."
));
delete
hostDlg
;
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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