aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.cpp
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-11-14 17:47:30 -0800
committerGravatar Thiago Macieira <thiago@macieira.org>2013-12-03 13:52:59 -0800
commitb38eac89e4903c91821c949d9d196bb1b8f652e3 (patch)
tree957b09686df64091c91d364f3ee63e836159d375 /qt-ui/subsurfacewebservices.cpp
parent0ed95678bac95fce37c1e754367aef1fc5c27bc7 (diff)
downloadsubsurface-b38eac89e4903c91821c949d9d196bb1b8f652e3.tar.gz
General fixes and improvements
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);