void SDeviceOutputLog::OnDeviceSelectionChanged(FTargetDeviceEntryPtr DeviceEntry, ESelectInfo::Type SelectInfo) { CurrentDeviceOutputPtr.Reset(); OnClearLog(); if (DeviceEntry.IsValid()) { ITargetDevicePtr PinnedPtr = DeviceEntry->DeviceWeakPtr.Pin(); if (PinnedPtr.IsValid() && PinnedPtr->IsConnected()) { CurrentDeviceOutputPtr = PinnedPtr->CreateDeviceOutputRouter(this); } } }