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
Utilities
KFind
Commits
f40bc0d4
Commit
f40bc0d4
authored
Jul 30, 2022
by
Laurent Montel
Browse files
KMessageBox::sorry is deprecated in kf5.97
parent
ce0bdd88
Pipeline
#210499
passed with stage
in 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kfinddlg.cpp
View file @
f40bc0d4
...
...
@@ -199,10 +199,10 @@ void KfindDlg::slotResult(int errorCode)
setStatusMsg
(
i18n
(
"Canceled."
));
}
else
if
(
errorCode
==
KIO
::
ERR_MALFORMED_URL
)
{
setStatusMsg
(
i18n
(
"Error."
));
KMessageBox
::
sorry
(
this
,
i18n
(
"Please specify an absolute path in the
\"
Look in
\"
box."
));
KMessageBox
::
error
(
this
,
i18n
(
"Please specify an absolute path in the
\"
Look in
\"
box."
));
}
else
if
(
errorCode
==
KIO
::
ERR_DOES_NOT_EXIST
)
{
setStatusMsg
(
i18n
(
"Error."
));
KMessageBox
::
sorry
(
this
,
i18n
(
"Could not find the specified folder."
));
KMessageBox
::
error
(
this
,
i18n
(
"Could not find the specified folder."
));
}
else
{
setStatusMsg
(
i18n
(
"Error."
));
}
...
...
src/kftabdlg.cpp
View file @
f40bc0d4
...
...
@@ -547,7 +547,7 @@ bool KfindTabWidget::isDateValid()
return
true
;
}
KMessageBox
::
sorry
(
this
,
i18n
(
"Unable to search within a period which is less than a minute."
));
KMessageBox
::
error
(
this
,
i18n
(
"Unable to search within a period which is less than a minute."
));
return
false
;
}
...
...
@@ -566,7 +566,7 @@ bool KfindTabWidget::isDateValid()
}
if
(
!
str
.
isEmpty
())
{
KMessageBox
::
sorry
(
nullptr
,
str
);
KMessageBox
::
error
(
nullptr
,
str
);
return
false
;
}
return
true
;
...
...
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