diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-12-09 16:45:54 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-12-09 16:45:54 +0200 |
commit | e0acad42aa7dcee4fdea940d85c9bfeca20b0c4d (patch) | |
tree | 676f8744295dab6c620ebc6d3feb6f399c980c77 /qt-ui/subsurfacewebservices.cpp | |
parent | de8d532adba6597b5c60b7935896b9238f5600d6 (diff) | |
download | subsurface-e0acad42aa7dcee4fdea940d85c9bfeca20b0c4d.tar.gz |
Divelogs.de: store the user/pass on upload
We store the user/pass for 'Apply' when downloading, but
we also want to store these values for 'Upload'.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp index c114c80eb..13a5a8a87 100644 --- a/qt-ui/subsurfacewebservices.cpp +++ b/qt-ui/subsurfacewebservices.cpp @@ -585,6 +585,11 @@ DivelogsDeWebServices::DivelogsDeWebServices(QWidget* parent, Qt::WindowFlags f) void DivelogsDeWebServices::startUpload() { + QSettings s; + s.setValue("divelogde_user", ui.userID->text()); + s.setValue("divelogde_pass", ui.password->text()); + s.sync(); + ui.status->setText(tr("Uploading dive list...")); ui.progressBar->setRange(0,0); // this makes the progressbar do an 'infinite spin' ui.upload->setEnabled(false); |