Skip to content
  • Àlex Fiestas's avatar
    Avoid doing qobject_cast on an already destroyed QObject · c8a97960
    Àlex Fiestas authored
    QObject::destroyed is emitted from the QObject destructor, because of
    that the object that inherit from it (in this case DeviceLink) will not
    exist anymore, hence we can't cast to it.
    
    So we are saving the needed information in an QObject property so we
    do not have to do any cast.
    c8a97960