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

List:       kde-commits
Subject:    KDE/kdepim/kmail
From:       Carsten Burghardt <burghardt () kde ! org>
Date:       2005-05-19 19:31:53
Message-ID: 1116531113.144737.28301.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 415861 by burghard:

Reset all vars when a new listing is started.
Good catch, thanks for the report.
BUGS:105979


 M  +6 -5      trunk/KDE/kdepim/kmail/subscriptiondialog.cpp  


--- trunk/KDE/kdepim/kmail/subscriptiondialog.cpp #415860:415861
@@ -260,10 +260,6 @@
 //------------------------------------------------------------------------------
 void SubscriptionDialog::slotLoadFolders()
 {
-  // clear the views
-  KSubscription::slotLoadFolders();
-  mItemDict.clear();
-
   ImapAccountBase* ai = static_cast<ImapAccountBase*>(account());
   // we need a connection
   if ( ai->makeConnection() == ImapAccountBase::Error )
@@ -278,6 +274,11 @@
         this, SLOT( slotConnectionResult(int, const QString&) ) );
     return;
   }
+  // clear the views
+  KSubscription::slotLoadFolders();
+  mItemDict.clear();
+  mSubscribed = false;
+  mLoading = true;
 
   initPrefixList();
 
@@ -287,7 +288,7 @@
 //------------------------------------------------------------------------------
 void SubscriptionDialog::processNext()
 {
-  if ( mPrefixList.empty() ) 
+  if ( mPrefixList.isEmpty() ) 
   {
     if ( !mSubscribed )
     {
[prev in list] [next in list] [prev in thread] [next in thread] 

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