Changeset 85e9259 in subsurface


Ignore:
Timestamp:
May 27, 2017, 11:07:19 AM (5 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
7858376
Parents:
c370b87
git-author:
Tomaz Canabrava <tcanabrava@…> (05/26/17 05:07:02)
git-committer:
Dirk Hohndel <dirk@…> (05/27/17 11:07:19)
Message:

Set descriptor when starting thread.

Set the descriptor when starting the thread, this removes
code from the desktop code and makes everything in sync always.

Signed-off-by: Tomaz Canabrava <tcanabrava@…>
Signed-off-by: Dirk Hohndel <dirk@…>

Location:
core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/downloadfromdcthread.cpp

    r09904dd r85e9259  
    11#include "downloadfromdcthread.h"
    22#include "core/libdivecomputer.h"
     3#include <QDebug>
    34
    45QStringList vendorList;
     
    2829{
    2930        auto internalData = m_data.internalData();
     31        internalData->descriptor = descriptorLookup[m_data.vendor() + m_data.product()];
    3032        Q_ASSERT(internalData->download_table != nullptr);
    3133        const char *errorText;
     
    160162}
    161163
    162 void DCDeviceData::setDescriptor(const QString& descriptor)
    163 {
    164         // data.descriptor =
    165 }
    166 
    167164void DCDeviceData::setBluetoothMode(bool mode)
    168165{
  • core/downloadfromdcthread.h

    r09904dd r85e9259  
    4848        void setProduct(const QString& product);
    4949        void setDevName(const QString& devName);
    50         void setDescriptor(const QString& descriptor);
    5150        void setBluetoothMode(bool mode);
    5251        void setForceDownload(bool force);
Note: See TracChangeset for help on using the changeset viewer.