Changeset View
Changeset View
Standalone View
Standalone View
messageviewer/src/viewer/messagepart.cpp
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | |||||
82 | AttachmentMarkBlock::~AttachmentMarkBlock() | 82 | AttachmentMarkBlock::~AttachmentMarkBlock() | ||
83 | { | 83 | { | ||
84 | internalExit(); | 84 | internalExit(); | ||
85 | } | 85 | } | ||
86 | 86 | | |||
87 | void AttachmentMarkBlock::internalEnter() | 87 | void AttachmentMarkBlock::internalEnter() | ||
88 | { | 88 | { | ||
89 | if (mWriter && !entered) { | 89 | if (mWriter && !entered) { | ||
90 | mWriter->queue(QStringLiteral("<div id=\"attachmentDiv%1\">\n").arg(mNode->index().toString())); | 90 | const QString index = mNode->index().toString(); | ||
91 | mWriter->queue(QStringLiteral("<a name=\"att%1\"></a>").arg(index)); | ||||
92 | mWriter->queue(QStringLiteral("<div id=\"attachmentDiv%1\">\n").arg(index)); | ||||
91 | entered = true; | 93 | entered = true; | ||
92 | } | 94 | } | ||
93 | } | 95 | } | ||
94 | 96 | | |||
95 | void AttachmentMarkBlock::internalExit() | 97 | void AttachmentMarkBlock::internalExit() | ||
96 | { | 98 | { | ||
97 | if (!entered) { | 99 | if (!entered) { | ||
98 | return; | 100 | return; | ||
▲ Show 20 Lines • Show All 355 Lines • Show Last 20 Lines |