Commit 3413e285 authored by Laurent Montel's avatar Laurent Montel
Browse files

Port deprecated KMessageBox::sorry

parent 1041e576
Pipeline #256338 passed with stage
in 1 minute and 36 seconds
......@@ -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());
}
}
......
......@@ -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));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment