aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-29 11:34:40 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-29 11:36:06 -0800
commit7c28cb989bda08610bf8f20bbfc9fb03b3b628a6 (patch)
treee79ef303bb54e50831d3e4139974299ab6e13d28 /qt-ui
parent6a579dc9c0b6f2ff01795cda67cf8e35aa55accf (diff)
downloadsubsurface-7c28cb989bda08610bf8f20bbfc9fb03b3b628a6.tar.gz
Make sure Subsurface webservice user id is always uppercase
Otherwise the download will fail. Fixes #308 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/subsurfacewebservices.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp
index 7ece0a640..6d44d8c5b 100644
--- a/qt-ui/subsurfacewebservices.cpp
+++ b/qt-ui/subsurfacewebservices.cpp
@@ -52,7 +52,7 @@ SubsurfaceWebServices* SubsurfaceWebServices::instance()
SubsurfaceWebServices::SubsurfaceWebServices(QWidget* parent, Qt::WindowFlags f)
{
QSettings s;
- ui.userID->setText(s.value("subsurface_webservice_uid").toString());
+ ui.userID->setText(s.value("subsurface_webservice_uid").toString().toUpper());
hidePassword();
hideUpload();
}
@@ -81,7 +81,7 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton* button)
/* store last entered uid in config */
QSettings s;
- s.setValue("subsurface_webservice_uid", ui.userID->text());
+ s.setValue("subsurface_webservice_uid", ui.userID->text().toUpper());
s.sync();
hide();
close();
@@ -105,7 +105,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()));
+ url.setQueryItems( QList<QPair<QString,QString> >() << qMakePair(QString("login"), ui.userID->text().toUpper()));
manager = new QNetworkAccessManager(this);
QNetworkRequest request;