From 526f54349599bf077410f5bc8e4bcb5d27d14323 Mon Sep 17 00:00:00 2001 From: Carsten Burghardt Date: Thu, 19 May 2005 19:31:50 +0000 Subject: [PATCH] Reset all vars when a new listing is started. Good catch, thanks for the report. BUGS:105979 svn path=/trunk/KDE/kdepim/; revision=415861 --- subscriptiondialog.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/subscriptiondialog.cpp b/subscriptiondialog.cpp index 5e2ca0994..8afa823e9 100644 --- a/subscriptiondialog.cpp +++ b/subscriptiondialog.cpp @@ -260,10 +260,6 @@ void SubscriptionDialog::slotSave() //------------------------------------------------------------------------------ void SubscriptionDialog::slotLoadFolders() { - // clear the views - KSubscription::slotLoadFolders(); - mItemDict.clear(); - ImapAccountBase* ai = static_cast(account()); // we need a connection if ( ai->makeConnection() == ImapAccountBase::Error ) @@ -278,6 +274,11 @@ void SubscriptionDialog::slotLoadFolders() 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::slotLoadFolders() //------------------------------------------------------------------------------ void SubscriptionDialog::processNext() { - if ( mPrefixList.empty() ) + if ( mPrefixList.isEmpty() ) { if ( !mSubscribed ) {