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:
Danilo Cesar Lemes de Paula 2013-09-01 11:14:54 -03:00
parent 59da382613
commit 3f8e183008
2 changed files with 41 additions and 11 deletions

View file

@ -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,
};