[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/knode
From:       Christian Gebauer <gebauer () kde ! org>
Date:       2002-11-06 2:24:24
[Download RAW message or body]

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<KNLocalArticle*>(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<KNLocalArticle*>(j->data());
-  KNLocalArticle::List lst;
-  lst.append(art);


  M +12 -5     knarticlefactory.cpp   1.66

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic