mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
clenup: remove bogus connect statement.
In OstcFirmwareCheck::saveOstcFirmware() we find the connect() call connect(dialog, SIGNAL(finished(int)), config, SLOT(dc_close())); whereby "config" is of the type "ConfigureDiveComputer". However, the function signature of ConfigureDiveComputer::dc_close reads as void dc_close(device_data_t *data); and indeed "data" is accessed inside the function. I don't understand how this doesn't crash, but clearly something is amiss. Let's remove that connect statement. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
4b4a117f96
commit
468eb7ef33
1 changed files with 0 additions and 1 deletions
|
@ -347,7 +347,6 @@ void OstcFirmwareCheck::saveOstcFirmware(QNetworkReply *reply)
|
|||
connect(config, SIGNAL(message(QString)), dialog, SLOT(setLabelText(QString)));
|
||||
connect(config, SIGNAL(error(QString)), dialog, SLOT(setLabelText(QString)));
|
||||
connect(config, SIGNAL(progress(int)), dialog, SLOT(setValue(int)));
|
||||
connect(dialog, SIGNAL(finished(int)), config, SLOT(dc_close()));
|
||||
config->dc_open(&devData);
|
||||
config->startFirmwareUpdate(storeFirmware, &devData);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue