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

List:       kde-core-devel
Subject:    three small patches for KNode
From:       Christian Gebauer <gebauer () bigfoot ! com>
Date:       2000-08-29 1:21:04
[Download RAW message or body]

Hi,

Fix for #9151:

Index: knnetaccess.cpp
===================================================================
RCS file: /home/kde/kdenetwork/knode/knnetaccess.cpp,v
retrieving revision 1.9
diff -u -3 -p -r1.9 knnetaccess.cpp
--- knnetaccess.cpp     2000/08/07 23:28:53     1.9
+++ knnetaccess.cpp     2000/08/29 01:13:55
@@ -131,7 +131,7 @@ void KNNetAccess::addJob(KNJobData *job)
 // type==0 => all jobs
 void KNNetAccess::stopJobsNntp(int type)
 {
-  if ((currentNntpJob) && ((type==0)||(currentNntpJob->type()==type))) {       // stop active job
+  if ((currentNntpJob && !currentNntpJob->canceled()) && ((type==0)||(currentNntpJob->type()==type))) {  \
// stop active job  currentNntpJob->cancel();
     triggerAsyncThread(nntpOutPipe[1]);
   }
@@ -155,7 +155,7 @@ void KNNetAccess::stopJobsNntp(int type)
 // type==0 => all jobs
 void KNNetAccess::stopJobsSmtp(int type)
 {
-  if ((currentSmtpJob) && ((type==0)||(currentSmtpJob->type()==type))) {       // stop active job
+  if ((currentSmtpJob && !currentSmtpJob->canceled()) && ((type==0)||(currentSmtpJob->type()==type))) {  \
// stop active job  currentSmtpJob->cancel();
     triggerAsyncThread(smtpOutPipe[1]);
   }



Fix for odd date in the "new groups" dialog:

Index: knnntpaccount.cpp
===================================================================
RCS file: /home/kde/kdenetwork/knode/knnntpaccount.cpp,v
retrieving revision 1.7
diff -u -3 -p -r1.7 knnntpaccount.cpp
--- knnntpaccount.cpp   2000/07/27 19:44:04     1.7
+++ knnntpaccount.cpp   2000/08/29 01:13:55
@@ -25,6 +25,7 @@
 KNNntpAccount::KNNntpAccount()
   : KNCollection(0), KNServerInfo(), u_nsentCount(0), f_etchDescriptions(true)
 {
+  l_astNewFetch = QDate::currentDate();
 }



 
This one ensures that the settings dialog is displayed
*in front* of the main window on the first start:
 
Index: knode.cpp
===================================================================
RCS file: /home/kde/kdenetwork/knode/knode.cpp,v
retrieving revision 1.39
diff -u -3 -p -r1.39 knode.cpp
--- knode.cpp   2000/08/15 00:34:53     1.39
+++ knode.cpp   2000/08/29 01:13:55
@@ -205,8 +205,10 @@ KNodeApp::KNodeApp()
     view->collectionView->setCurrentItem(view->collectionView->firstChild());
   view->collectionView->setFocus();
 
-  if (is_first_start)  // open the config dialog on the first start
+  if (is_first_start) {  // open the config dialog on the first start
+    show();              // the settings dialog must appear in front of the main window!
     slotSettings();
+  }
 }  

Christian
-- 
> > << Christian Gebauer >><< gebauer@bigfoot.com >><< ICQ 14916141 >><<


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

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