mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Improve on error reporting in the ConfigureDiveComputer class
This patch improves on the error reporting for the dive computer configuration dialog to use config->lastError. The previous code was using a different argument in each function, which lacked uniformity. Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com> Signed-off-by: Thiago Macieira <thiago@macieira.org>
This commit is contained in:
parent
24cb0b0496
commit
4e99382c96
3 changed files with 13 additions and 16 deletions
|
|
@ -32,9 +32,9 @@ public:
|
|||
device_data_t *m_data;
|
||||
void saveDeviceDetails(DeviceDetails *details, device_data_t *data);
|
||||
void fetchDeviceDetails();
|
||||
bool saveXMLBackup(QString fileName, DeviceDetails *details, device_data_t *data, QString errorText);
|
||||
bool restoreXMLBackup(QString fileName, DeviceDetails *details, QString errorText);
|
||||
void startFirmwareUpdate(QString fileName, device_data_t *data, QString errorText);
|
||||
bool saveXMLBackup(QString fileName, DeviceDetails *details, device_data_t *data);
|
||||
bool restoreXMLBackup(QString fileName, DeviceDetails *details);
|
||||
void startFirmwareUpdate(QString fileName, device_data_t *data);
|
||||
signals:
|
||||
void message(QString msg);
|
||||
void error(QString err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue