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
Network
KTorrent
Commits
3413e285
Commit
3413e285
authored
Oct 27, 2022
by
Laurent Montel
Browse files
Port deprecated KMessageBox::sorry
parent
1041e576
Pipeline
#256338
passed with stage
in 1 minute and 36 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ktorrent/ipfilterwidget.cpp
View file @
3413e285
...
...
@@ -87,7 +87,7 @@ void IPFilterWidget::add()
QString
ip
=
m_ip_to_add
->
text
();
if
(
!
regex_match
(
ip
.
toStdString
(),
rx
)
||
!
filter_list
->
add
(
ip
))
{
KMessageBox
::
sorry
(
this
,
KMessageBox
::
error
(
this
,
i18n
(
"Invalid IP address <b>%1</b>. IP addresses must be in the format 'XXX.XXX.XXX.XXX'."
"<br/><br/>You can also use wildcards like '127.0.0.*' or specify ranges like '200.10.10.0-200.10.10.40'."
)
.
arg
(
ip
));
...
...
@@ -95,7 +95,7 @@ void IPFilterWidget::add()
return
;
}
}
catch
(
bt
::
Error
&
err
)
{
KMessageBox
::
sorry
(
this
,
err
.
toString
());
KMessageBox
::
error
(
this
,
err
.
toString
());
}
}
...
...
plugins/infowidget/trackerview.cpp
View file @
3413e285
...
...
@@ -126,7 +126,7 @@ void TrackerView::addClicked()
}
if
(
dupes
.
size
()
==
1
)
KMessageBox
::
sorry
(
nullptr
,
i18n
(
"There already is a tracker named <b>%1</b>."
,
dupes
.
front
().
toDisplayString
()));
KMessageBox
::
error
(
nullptr
,
i18n
(
"There already is a tracker named <b>%1</b>."
,
dupes
.
front
().
toDisplayString
()));
else
if
(
dupes
.
size
()
>
1
)
KMessageBox
::
informationList
(
nullptr
,
i18n
(
"The following duplicate trackers were not added:"
),
QUrl
::
toStringList
(
dupes
));
...
...
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