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