Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/framesvg.cpp
Show First 20 Lines • Show All 619 Lines • ▼ Show 20 Line(s) | 619 | if (oldKey == newKey) { | |||
---|---|---|---|---|---|
620 | return; | 620 | return; | ||
621 | } | 621 | } | ||
622 | 622 | | |||
623 | //qCDebug(LOG_PLASMA) << "looking for" << newKey; | 623 | //qCDebug(LOG_PLASMA) << "looking for" << newKey; | ||
624 | auto newFd = FrameSvgPrivate::s_sharedFrames[q->theme()->d].value(newKey); | 624 | auto newFd = FrameSvgPrivate::s_sharedFrames[q->theme()->d].value(newKey); | ||
625 | if (newFd) { | 625 | if (newFd) { | ||
626 | //qCDebug(LOG_PLASMA) << "FOUND IT!" << newFd->refcount; | 626 | //qCDebug(LOG_PLASMA) << "FOUND IT!" << newFd->refcount; | ||
627 | // we've found a match, use that one | 627 | // we've found a match, use that one | ||
628 | Q_ASSERT(newKey == newFd.data()->cacheId); | 628 | auto newFdRef = newFd.lock(); | ||
629 | Q_ASSERT(newKey == newFdRef->cacheId); | ||||
629 | frame = newFd; | 630 | frame = newFd; | ||
630 | return; | 631 | return; | ||
631 | } | 632 | } | ||
632 | 633 | | |||
633 | fd.reset(new FrameData(*fd, q)); | 634 | fd.reset(new FrameData(*fd, q)); | ||
634 | } else { | 635 | } else { | ||
635 | fd.reset(new FrameData(q, QString())); | 636 | fd.reset(new FrameData(q, QString())); | ||
636 | } | 637 | } | ||
▲ Show 20 Lines • Show All 259 Lines • Show Last 20 Lines |