Don't archive non-existant protocol icons

This commit is contained in:
Jaidyn Ann 2021-08-09 22:10:01 -05:00
parent e05d14dc95
commit 40eaac550f

View File

@ -47,6 +47,7 @@ ProtocolLooper::~ProtocolLooper()
BMessage* msg = new BMessage(APP_ACCOUNT_DISABLED);
BBitmap* icon = fProtocol->Icon();
if (icon != NULL)
icon->Archive(msg);
msg->AddString("name", fProtocol->GetName());
fProtocol->MessengerInterface()->SendMessage(msg);