aboutsummaryrefslogtreecommitdiffstats
path: root/core/downloadfromdcthread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/downloadfromdcthread.cpp')
-rw-r--r--core/downloadfromdcthread.cpp7
1 files changed, 2 insertions, 5 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;