Commit 1bb9ecd9 authored by Laurent Montel's avatar Laurent Montel 😁

Use contains here

parent d50f846e
......@@ -108,7 +108,7 @@ void AddFeedDialog::accept()
feedUrl = feedUrl.right(feedUrl.length() - 5);
}
if (feedUrl.indexOf(QStringLiteral(":/")) == -1) {
if (!feedUrl.contains(QStringLiteral(":/"))) {
feedUrl.prepend(QStringLiteral("http://"));
}
......
Markdown is supported
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