Changeset View
Changeset View
Standalone View
Standalone View
src/core/jobs/itemmodifyjob.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
50 | { | 50 | { | ||
51 | mOperations.insert(Dirty); | 51 | mOperations.insert(Dirty); | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | Protocol::PartMetaData ItemModifyJobPrivate::preparePart(const QByteArray &partName) | 54 | Protocol::PartMetaData ItemModifyJobPrivate::preparePart(const QByteArray &partName) | ||
55 | { | 55 | { | ||
56 | ProtocolHelper::PartNamespace ns; // dummy | 56 | ProtocolHelper::PartNamespace ns; // dummy | ||
57 | const QByteArray partLabel = ProtocolHelper::decodePartIdentifier(partName, ns); | 57 | const QByteArray partLabel = ProtocolHelper::decodePartIdentifier(partName, ns); | ||
58 | if (!mParts.remove(partLabel)) { | 58 | if (!mParts.contains(partLabel)) { | ||
59 | // Error? | 59 | // Error? | ||
60 | return Protocol::PartMetaData(); | 60 | return Protocol::PartMetaData(); | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | mPendingData.clear(); | 63 | mPendingData.clear(); | ||
64 | int version = 0; | 64 | int version = 0; | ||
65 | const auto item = mItems.first(); | 65 | const auto item = mItems.first(); | ||
66 | if (mForeignParts.contains(partLabel)) { | 66 | if (mForeignParts.contains(partLabel)) { | ||
▲ Show 20 Lines • Show All 362 Lines • Show Last 20 Lines |