aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/downloadfromdcthread.cpp7
-rw-r--r--core/downloadfromdcthread.h1
2 files changed, 2 insertions, 6 deletions
diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp
index e90481a0b..46adbe54c 100644
--- a/core/downloadfromdcthread.cpp
+++ b/core/downloadfromdcthread.cpp
@@ -1,5 +1,6 @@
#include "downloadfromdcthread.h"
#include "core/libdivecomputer.h"
+#include <QDebug>
QStringList vendorList;
QHash<QString, QStringList> productList;
@@ -27,6 +28,7 @@ void DownloadThread::setDiveTable(struct dive_table* table)
void DownloadThread::run()
{
auto internalData = m_data.internalData();
+ internalData->descriptor = descriptorLookup[m_data.vendor() + m_data.product()];
Q_ASSERT(internalData->download_table != nullptr);
const char *errorText;
import_thread_cancelled = false;
@@ -159,11 +161,6 @@ void DCDeviceData::setDevName(const QString& devName)
data.devname = strdup(qPrintable(devName));
}
-void DCDeviceData::setDescriptor(const QString& descriptor)
-{
- // data.descriptor =
-}
-
void DCDeviceData::setBluetoothMode(bool mode)
{
data.bluetooth_mode = mode;
diff --git a/core/downloadfromdcthread.h b/core/downloadfromdcthread.h
index d2c3408f2..b20fe17a6 100644
--- a/core/downloadfromdcthread.h
+++ b/core/downloadfromdcthread.h
@@ -47,7 +47,6 @@ public slots:
void setVendor(const QString& vendor);
void setProduct(const QString& product);
void setDevName(const QString& devName);
- void setDescriptor(const QString& descriptor);
void setBluetoothMode(bool mode);
void setForceDownload(bool force);
void setCreateNewTrip(bool create);