Permalink
Browse files

be more tolerant to the errors in repository URLs

  • Loading branch information...
1 parent d0a30b4 commit c73cb6a903126dfd678155942ff818b9ca513774 Tim Lebedkov committed Apr 1, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 npackdcl/src/app.cpp
@@ -536,7 +536,7 @@ QString App::addRepo()
QUrl* url_ = 0;
if (err.isEmpty()) {
url_ = new QUrl();
- url_->setUrl(url, QUrl::StrictMode);
+ url_->setUrl(url, QUrl::TolerantMode);
if (!url_->isValid()) {
err = "Invalid URL: " + url;
}
@@ -591,7 +591,7 @@ QString App::setRepo()
QString url = urls_.at(i);
QUrl* url_ = new QUrl();
- url_->setUrl(url, QUrl::StrictMode);
+ url_->setUrl(url, QUrl::TolerantMode);
if (!url_->isValid()) {
err = "Invalid URL: " + url;
} else {
@@ -776,7 +776,7 @@ QString App::removeRepo()
QUrl* url_ = 0;
if (err.isEmpty()) {
url_ = new QUrl();
- url_->setUrl(url, QUrl::StrictMode);
+ url_->setUrl(url, QUrl::TolerantMode);
if (!url_->isValid()) {
err = "Invalid URL: " + url;
}

0 comments on commit c73cb6a

Please sign in to comment.