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
Akonadi Contacts
Commits
8bc66abe
Commit
8bc66abe
authored
Jul 28, 2022
by
Laurent Montel
Browse files
KMessageBox::sorry is deprecated in kf5.97
parent
47ccc3fc
Pipeline
#210016
failed with stage
in 9 minutes and 46 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/akonadi-contacts/actions/dialphonenumberaction.cpp
View file @
8bc66abe
...
...
@@ -40,7 +40,7 @@ void DialPhoneNumberAction::dialNumber(const KContacts::PhoneNumber &number)
}
if
(
dialer
)
{
if
(
!
dialer
->
dialNumber
(
number
.
normalizedNumber
()))
{
KMessageBox
::
sorry
(
nullptr
,
dialer
->
errorMessage
());
KMessageBox
::
error
(
nullptr
,
dialer
->
errorMessage
());
}
delete
dialer
;
return
;
...
...
@@ -56,7 +56,7 @@ void DialPhoneNumberAction::dialNumber(const KContacts::PhoneNumber &number)
QString
command
=
ContactActionsSettings
::
self
()
->
phoneCommand
();
if
(
command
.
isEmpty
())
{
KMessageBox
::
sorry
(
nullptr
,
i18n
(
"There is no application set which could be executed.
\n
Please go to the settings dialog and configure one."
));
KMessageBox
::
error
(
nullptr
,
i18n
(
"There is no application set which could be executed.
\n
Please go to the settings dialog and configure one."
));
return
;
}
...
...
src/akonadi-contacts/actions/sendsmsaction.cpp
View file @
8bc66abe
...
...
@@ -36,7 +36,7 @@ void SendSmsAction::sendSms(const KContacts::PhoneNumber &phoneNumber)
// check for valid config first, so the user doesn't type the message without a way to actually send it
QString
command
=
ContactActionsSettings
::
self
()
->
smsCommand
();
if
(
command
.
isEmpty
()
&&
ContactActionsSettings
::
self
()
->
sendSmsAction
()
==
ContactActionsSettings
::
UseExternalSmsApplication
)
{
KMessageBox
::
sorry
(
nullptr
,
i18n
(
"There is no application set which could be executed.
\n
Please go to the settings dialog and configure one."
));
KMessageBox
::
error
(
nullptr
,
i18n
(
"There is no application set which could be executed.
\n
Please go to the settings dialog and configure one."
));
return
;
}
...
...
@@ -60,7 +60,7 @@ void SendSmsAction::sendSms(const KContacts::PhoneNumber &phoneNumber)
// I'm not sure whether here should be a notification.
// Skype can do a notification itself if whished.
}
else
{
KMessageBox
::
sorry
(
nullptr
,
dialer
->
errorMessage
());
KMessageBox
::
error
(
nullptr
,
dialer
->
errorMessage
());
}
}
...
...
src/contact-editor/editor/widgets/imagewidget.cpp
View file @
8bc66abe
...
...
@@ -74,7 +74,7 @@ QImage ImageLoader::loadImage(const QUrl &url, bool *ok, bool selectPictureSize)
if
(
!
(
*
ok
))
{
// image does not exist (any more)
KMessageBox
::
sorry
(
mParent
,
i18n
(
"This contact's image cannot be found."
));
KMessageBox
::
error
(
mParent
,
i18n
(
"This contact's image cannot be found."
));
return
image
;
}
...
...
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