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
KDE PIM Runtime
Commits
dac8964c
Commit
dac8964c
authored
Jul 28, 2022
by
Laurent Montel
Browse files
KMessageBox::sorry is deprecated in kf5.97
parent
c7f026aa
Pipeline
#210020
passed with stage
in 20 minutes and 34 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
resources/google-groupware/googlesettingsdialog.cpp
View file @
dac8964c
...
...
@@ -106,7 +106,7 @@ bool GoogleSettingsDialog::handleError(KGAPI2::Job *job)
return
false
;
}
KMessageBox
::
sorry
(
this
,
job
->
errorString
());
KMessageBox
::
error
(
this
,
job
->
errorString
());
return
false
;
}
...
...
@@ -147,7 +147,7 @@ void GoogleSettingsDialog::slotAuthJobFinished(KGAPI2::Job *job)
auto
authJob
=
qobject_cast
<
AuthJob
*>
(
job
);
m_account
=
authJob
->
account
();
if
(
authJob
->
error
()
!=
KGAPI2
::
NoError
)
{
KMessageBox
::
sorry
(
this
,
authJob
->
errorString
());
KMessageBox
::
error
(
this
,
authJob
->
errorString
());
return
;
}
accountChanged
();
...
...
resources/imap/setupserver.cpp
View file @
dac8964c
...
...
@@ -534,7 +534,7 @@ void SetupServer::slotFinished(const QVector<int> &testResult)
using
namespace
MailTransport
;
if
(
!
m_serverTest
->
isNormalPossible
()
&&
!
m_serverTest
->
isSecurePossible
())
{
KMessageBox
::
sorry
(
this
,
i18n
(
"Unable to connect to the server, please verify the server address."
));
KMessageBox
::
error
(
this
,
i18n
(
"Unable to connect to the server, please verify the server address."
));
}
m_ui
->
testInfo
->
show
();
...
...
resources/pop3/accountwidget.cpp
View file @
dac8964c
...
...
@@ -288,7 +288,7 @@ void AccountWidget::slotPopEncryptionChanged(QAbstractButton *button)
void
AccountWidget
::
slotCheckPopCapabilities
()
{
if
(
hostEdit
->
text
().
isEmpty
())
{
KMessageBox
::
sorry
(
this
,
KMessageBox
::
error
(
this
,
i18n
(
"Please specify a server and port on "
"the General tab first."
));
return
;
...
...
@@ -322,7 +322,7 @@ void AccountWidget::slotPopCapabilities(const QVector<int> &encryptionTypes)
// if both fail, popup a dialog
if
(
!
mServerTest
->
isNormalPossible
()
&&
!
mServerTest
->
isSecurePossible
())
{
KMessageBox
::
sorry
(
this
,
i18n
(
"Unable to connect to the server, please verify the server address."
));
KMessageBox
::
error
(
this
,
i18n
(
"Unable to connect to the server, please verify the server address."
));
}
// If the servertest did not find any usable authentication modes, assume the
...
...
resources/pop3/pop3resource.cpp
View file @
dac8964c
...
...
@@ -494,7 +494,7 @@ void POP3Resource::uidListJobResult(KJob *job)
mUidListValid
=
!
mIdsToUidsMap
.
isEmpty
()
||
mIdsToSizeMap
.
isEmpty
();
if
(
mSettings
.
leaveOnServer
()
&&
!
mUidListValid
)
{
// FIXME: this needs a proper parent window
KMessageBox
::
sorry
(
nullptr
,
KMessageBox
::
error
(
nullptr
,
i18n
(
"Your POP3 server (Account: %1) does not support "
"the UIDL command: this command is required to determine, in a reliable way, "
"which of the mails on the server KMail has already seen before;
\n
"
...
...
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