Bug 70528 - Deleted IRC-accounts stay in add-contact context-menu. The Kopete application has to be re-startet to remove its item.
Summary: Deleted IRC-accounts stay in add-contact context-menu. The Kopete application...
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: Main Application (show other bugs)
Version: 0.7.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-15 21:00 UTC by norbert.notz
Modified: 2004-02-04 04:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description norbert.notz 2003-12-15 21:00:21 UTC
Version:           0.7.3 (using KDE KDE 3.1.4)
Installed from:    SuSE RPMs

Deleted IRC-accounts stay in add-contact context-menu. The Kopete application has to be re-startet to remove its item.
Comment 1 Jason Keirstead 2003-12-19 18:43:00 UTC
This isn'yt an IRC bug, its a genera Kopete bug.

The same thing happens with all types of accounts.
Comment 2 Matt Rogers 2004-02-04 04:41:37 UTC
Subject: kdenetwork/kopete/libkopete

CVS commit by mattr: 

Fix bug 70528. Remove the account from the accounts list before you delete it.

CCMAIL: 70528@bugs.kde.org


  M +3 -1      kopeteaccountmanager.cpp   1.44


--- kdenetwork/kopete/libkopete/kopeteaccountmanager.cpp  #1.43:1.44
@@ -208,4 +208,7 @@ void KopeteAccountManager::removeAccount
         QString groupName = account->configGroup();
 
+        // Clean up the account list
+        d->accounts.remove( account );
+
         delete account;
 
@@ -228,5 +231,4 @@ void KopeteAccountManager::unregisterAcc
 {
         kdDebug(14010) << k_funcinfo << "Unregistering account " << account->accountId() << endl;
-        d->accounts.remove( account );
         emit accountUnregistered( account );
 }


Comment 3 Matt Rogers 2004-02-04 04:43:06 UTC
Subject: KDE_3_2_BRANCH: kdenetwork/kopete/libkopete

CVS commit by mattr: 

Backport of the fix for bug 70528. Remove accounts from the list before
deletion.

CCMAIL: 70528-done@bugs.kde.org


  M +3 -1      kopeteaccountmanager.cpp   1.43.2.1


--- kdenetwork/kopete/libkopete/kopeteaccountmanager.cpp  #1.43:1.43.2.1
@@ -208,4 +208,7 @@ void KopeteAccountManager::removeAccount
         QString groupName = account->configGroup();
 
+        // Clean up the account list
+        d->accounts.remove( account );
+
         delete account;
 
@@ -228,5 +231,4 @@ void KopeteAccountManager::unregisterAcc
 {
         kdDebug(14010) << k_funcinfo << "Unregistering account " << account->accountId() << endl;
-        d->accounts.remove( account );
         emit accountUnregistered( account );
 }