From 9d8a3e4e50f30c7965535923a006fb708ed020d2 Mon Sep 17 00:00:00 2001 From: Till Adam Date: Thu, 31 Jul 2003 12:36:18 +0000 Subject: [PATCH] Don't crash if transferInProgress has been set to false elsewhere in the meantime. svn path=/trunk/kdepim/; revision=240189 --- imapjob.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imapjob.cpp b/imapjob.cpp index 40b7b94b5..0c2e957c6 100644 --- a/imapjob.cpp +++ b/imapjob.cpp @@ -292,7 +292,8 @@ void ImapJob::slotGetBodyStructureResult( KIO::Job * job ) return; } KMFolderImap* parent = static_cast(msg->parent()); - msg->setTransferInProgress( false ); + if (msg->transferInProgress()) + msg->setTransferInProgress( false ); KMAcctImap *account = parent->account(); if ( !account ) { deleteLater();