mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
dive download: pass current filename to dialog
Instead of accessing a global variable, pass the filename from the MainWindow to the dialog. This is supposed to cut down on the global variable mess. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
981352646c
commit
64419f2b19
5 changed files with 18 additions and 18 deletions
|
@ -123,14 +123,14 @@ class OstcFirmwareCheck : public QObject {
|
|||
Q_OBJECT
|
||||
public:
|
||||
explicit OstcFirmwareCheck(const QString &product);
|
||||
void checkLatest(QWidget *parent, device_data_t *data);
|
||||
void checkLatest(QWidget *parent, device_data_t *data, const QString &filename);
|
||||
public
|
||||
slots:
|
||||
void parseOstcFwVersion(QNetworkReply *reply);
|
||||
void saveOstcFirmware(QNetworkReply *reply);
|
||||
|
||||
private:
|
||||
void upgradeFirmware();
|
||||
void upgradeFirmware(const QString &filename);
|
||||
device_data_t devData;
|
||||
QString latestFirmwareAvailable;
|
||||
QString latestFirmwareHexFile;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue