From b38eac89e4903c91821c949d9d196bb1b8f652e3 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 14 Nov 2013 17:47:30 -0800 Subject: General fixes and improvements --- qt-ui/subsurfacewebservices.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui/subsurfacewebservices.cpp') 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 >() << 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); -- cgit v1.2.3-70-g09d2