From kde-commits Wed Nov 06 02:24:24 2002 From: Christian Gebauer Date: Wed, 06 Nov 2002 02:24:24 +0000 To: kde-commits Subject: kdenetwork/knode X-MARC-Message: https://marc.info/?l=kde-commits&m=103654956826762 CVS commit by gebauer: fix for #44319, unsent articels were lost if the user stopped the posting process. The obvious fix is to move the article to the outbox, like we already do in the case of an error. void KNArticleFactory::processJob(KNJobData *j) -{ +{ + KNLocalArticle *art=static_cast(j->data()); + KNLocalArticle::List lst; + lst.append(art); + if(j->canceled()) { delete j; + + //sending of this article was canceled => move it to the "Outbox-Folder" + if(art->collection()!=knGlobals.folManager->outbox()) + knGlobals.artManager->moveIntoFolder(lst, knGlobals.folManager->outbox()); + + /* add approviate info message here !!! */ + return; } - - KNLocalArticle *art=static_cast(j->data()); - KNLocalArticle::List lst; - lst.append(art); M +12 -5 knarticlefactory.cpp 1.66