mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
improve DownloadDialog's error handling
shows an error message when libdivecomputer returns an error. Signed-off-by: Danilo Cesar Lemes de Paula <danilo.eu@gmail.com>
This commit is contained in:
parent
59da382613
commit
3f8e183008
2 changed files with 41 additions and 11 deletions
|
@ -15,8 +15,10 @@ struct device_data_t;
|
|||
class DownloadThread : public QThread{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit DownloadThread(QObject* parent, device_data_t* data);
|
||||
DownloadThread(QObject* parent, device_data_t* data);
|
||||
virtual void run();
|
||||
|
||||
QString error;
|
||||
private:
|
||||
device_data_t *data;
|
||||
};
|
||||
|
@ -34,6 +36,7 @@ public:
|
|||
DOWNLOADING,
|
||||
CANCELLING,
|
||||
CANCELLED,
|
||||
ERROR,
|
||||
DONE,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue