summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r--qt-ui/subsurfacewebservices.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp
index 62e700fab..5edc5cb02 100644
--- a/qt-ui/subsurfacewebservices.cpp
+++ b/qt-ui/subsurfacewebservices.cpp
@@ -106,7 +106,7 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton* button)
void SubsurfaceWebServices::startDownload()
{
QUrl url("http://api.hohndel.org/api/dive/get/");
- url.setQueryItems( QList<QPair<QString,QString> >() << qMakePair(QString("login"), ui.userID->text().toUpper()));
+ url.addQueryItem("login", ui.userID->text().toUpper());
manager = new QNetworkAccessManager(this);
QNetworkRequest request;
@@ -140,7 +140,7 @@ void SubsurfaceWebServices::downloadFinished()
reply->deleteLater();
}
-void SubsurfaceWebServices::downloadError(QNetworkReply::NetworkError error)
+void SubsurfaceWebServices::downloadError(QNetworkReply::NetworkError)
{
ui.download->setEnabled(true);
ui.progressBar->setRange(0,1);