Commit 458482a1 authored by Laurent Montel's avatar Laurent Montel
Browse files

Rename variable

parent ecc27721
......@@ -186,7 +186,7 @@ ViewerPrivate::ViewerPrivate(Viewer *aParent, QWidget *mainWindow, KActionCollec
, q(aParent)
, mSession(new Akonadi::Session("MessageViewer-"
+ QByteArray::number(reinterpret_cast<quintptr>(this)), this))
, mPreviouslyViewedItem(-1)
, mPreviouslyViewedItemId(-1)
{
if (!mainWindow) {
mMainWindow = aParent;
......@@ -2936,11 +2936,11 @@ void ViewerPrivate::slotMessageRendered()
* some asynchronous mementos are involved in rendering. Therefor we
* have to make sure we execute the MessageLoadedHandlers only once.
*/
if (mMessageItem.id() == mPreviouslyViewedItem) {
if (mMessageItem.id() == mPreviouslyViewedItemId) {
return;
}
mPreviouslyViewedItem = mMessageItem.id();
mPreviouslyViewedItemId = mMessageItem.id();
for (AbstractMessageLoadedHandler *handler : qAsConst(mMessageLoadedHandlers)) {
handler->setItem(mMessageItem);
......
......@@ -677,7 +677,7 @@ public:
Akonadi::Session *mSession = nullptr;
Akonadi::Monitor mMonitor;
QSet<AbstractMessageLoadedHandler *> mMessageLoadedHandlers;
Akonadi::Item::Id mPreviouslyViewedItem;
Akonadi::Item::Id mPreviouslyViewedItemId;
MessageViewer::ScamDetectionWarningWidget *mScamDetectionWarning = nullptr;
MessageViewer::OpenAttachmentFolderWidget *mOpenAttachmentFolderWidget = nullptr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment