mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
ae2c132a26
commit
f32e86eb32
4 changed files with 38 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue