diff options
author | Thiago Macieira <thiago@macieira.org> | 2013-11-14 17:47:30 -0800 |
---|---|---|
committer | Thiago Macieira <thiago@macieira.org> | 2013-12-03 13:52:59 -0800 |
commit | b38eac89e4903c91821c949d9d196bb1b8f652e3 (patch) | |
tree | 957b09686df64091c91d364f3ee63e836159d375 /qt-ui/subsurfacewebservices.cpp | |
parent | 0ed95678bac95fce37c1e754367aef1fc5c27bc7 (diff) | |
download | subsurface-b38eac89e4903c91821c949d9d196bb1b8f652e3.tar.gz |
General fixes and improvements
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 4 |
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); |