diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2015-09-27 12:38:35 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-09-28 16:29:04 +0000 |
commit | ab6f941b50db3a99304dc4fff450de7dbca570bf (patch) | |
tree | a0cd285de8aab980f8b83fdea734a9b6640b1a22 /src | |
parent | dceb424fe81ae29dde8e49a6dad300c547c8be26 (diff) |
QUrl::setPort: use the original port number in the error message
Otherwise the error message will always say -1.
Change-Id: I42e7ef1a481840699a8dffff1407eceec1906254
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/io/qurl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp index 89f5aad97f..9bf359222a 100644 --- a/src/corelib/io/qurl.cpp +++ b/src/corelib/io/qurl.cpp @@ -2411,8 +2411,8 @@ void QUrl::setPort(int port) d->clearError(); if (port < -1 || port > 65535) { - port = -1; d->setError(QUrlPrivate::InvalidPortError, QString::number(port), 0); + port = -1; } d->port = port; |