diff options
author | Anton Lundin <glance@acc.umu.se> | 2015-01-21 19:05:22 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-22 06:26:57 +1200 |
commit | fd33e7013581aa2bbfebfce23e32c0181e07f049 (patch) | |
tree | 130313c712ad5e7575146d6c9c65541bedc6a9c7 /configuredivecomputer.cpp | |
parent | 8997fc88a305b7d95f486ddc4a0ac0cfc353ea8d (diff) | |
download | subsurface-fd33e7013581aa2bbfebfce23e32c0181e07f049.tar.gz |
Use correct flag when connecting the progress events to the progress bar
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'configuredivecomputer.cpp')
-rw-r--r-- | configuredivecomputer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configuredivecomputer.cpp b/configuredivecomputer.cpp index ec69c776a..432aec807 100644 --- a/configuredivecomputer.cpp +++ b/configuredivecomputer.cpp @@ -30,7 +30,7 @@ void ConfigureDiveComputer::readSettings(device_data_t *data) connect(readThread, SIGNAL(error(QString)), this, SLOT(setError(QString))); connect(readThread, SIGNAL(devicedetails(DeviceDetails *)), this, SIGNAL(deviceDetailsChanged(DeviceDetails *))); - connect(readThread, SIGNAL(progress(int)), this, SLOT(progressEvent(int))); + connect(readThread, SIGNAL(progress(int)), this, SLOT(progressEvent(int)), Qt::QueuedConnection); readThread->start(); } @@ -46,7 +46,7 @@ void ConfigureDiveComputer::saveDeviceDetails(DeviceDetails *details, device_dat connect(writeThread, SIGNAL(finished()), this, SLOT(writeThreadFinished()), Qt::QueuedConnection); connect(writeThread, SIGNAL(error(QString)), this, SLOT(setError(QString))); - connect(writeThread, SIGNAL(progress(int)), this, SLOT(progressEvent(int))); + connect(writeThread, SIGNAL(progress(int)), this, SLOT(progressEvent(int)), Qt::QueuedConnection); writeThread->setDeviceDetails(details); writeThread->start(); @@ -506,7 +506,7 @@ void ConfigureDiveComputer::startFirmwareUpdate(QString fileName, device_data_t connect(firmwareThread, SIGNAL(finished()), this, SLOT(firmwareThreadFinished()), Qt::QueuedConnection); connect(firmwareThread, SIGNAL(error(QString)), this, SLOT(setError(QString))); - connect(firmwareThread, SIGNAL(progress(int)), this, SLOT(progressEvent(int))); + connect(firmwareThread, SIGNAL(progress(int)), this, SLOT(progressEvent(int)), Qt::QueuedConnection); firmwareThread->start(); } @@ -522,7 +522,7 @@ void ConfigureDiveComputer::resetSettings(device_data_t *data) connect(resetThread, SIGNAL(finished()), this, SLOT(resetThreadFinished()), Qt::QueuedConnection); connect(resetThread, SIGNAL(error(QString)), this, SLOT(setError(QString))); - connect(resetThread, SIGNAL(progress(int)), this, SLOT(progressEvent(int))); + connect(resetThread, SIGNAL(progress(int)), this, SLOT(progressEvent(int)), Qt::QueuedConnection); resetThread->start(); } |