diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-30 17:58:59 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-30 18:02:29 +0900 |
commit | f32e86eb32ee3697f255d01a61f6aa2e1cff5a8b (patch) | |
tree | 4f3db6fbaef45d931fb9dfda0286d445da2f9102 /qt-ui/downloadfromdivecomputer.h | |
parent | ae2c132a267932892d5c3f7965517194d38d962a (diff) | |
download | subsurface-f32e86eb32ee3697f255d01a61f6aa2e1cff5a8b.tar.gz |
Hook up the Download dialog
The download already worked, but we didn't display the new dives. This
introduces a new slot for MainWindow that updates what is displayed in
Subsurface after files were imported.
With this change we can successfully download ONCE - but when trying to
download a second dive the dialog doesn't appear to get refreshed the
right way - the OK button doesn't appear to work anymore (Cancel however
does).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.h')
-rw-r--r-- | qt-ui/downloadfromdivecomputer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/downloadfromdivecomputer.h b/qt-ui/downloadfromdivecomputer.h index fdc730753..27e64c96f 100644 --- a/qt-ui/downloadfromdivecomputer.h +++ b/qt-ui/downloadfromdivecomputer.h @@ -38,11 +38,11 @@ class DownloadFromDCWidget : public QDialog{ Q_OBJECT public: explicit DownloadFromDCWidget(QWidget* parent = 0, Qt::WindowFlags f = 0); - + static DownloadFromDCWidget *instance(); public slots: void on_ok_clicked(); void on_cancel_clicked(); - + void runDialog(); void on_vendor_currentIndexChanged(const QString& vendor); private: Ui::DownloadFromDiveComputer *ui; @@ -57,6 +57,8 @@ private: QStringListModel *vendorModel; QStringListModel *productModel; void fill_computer_list(); +public: + bool preferDownloaded(); }; #endif |