Bug 62439

Summary: Changing the order of accounts does not stick
Product: [Unmaintained] kopete Reporter: Ken Zalewski <kennyz>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: cshobe, pereira.alex
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Slackware   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ken Zalewski 2003-08-10 07:46:41 UTC
Version:           0.7 CVS HEAD (using KDE KDE 3.1.3)
Installed from:    Slackware Packages
Compiler:          gcc 3.2.2 
OS:          Linux

Rearranging the order to accounts in the Account Manager does not get remembered/saved, even during the same execution of Kopete.

1. Start Kopete
2. Go to Settings -> Configure Kopete... -> Accounts
3. Use the Up and Down arrow buttons to reorder some accounts.
4. Click Apply and/or OK.
5. Go back to Settings -> Configure Kopete... -> Accounts

The accounts are in the original order when Kopete was started, not the new order that was just selected.

This applies to the CVS HEAD version of Kopete as of 10 August 2003.
Comment 1 Olivier Goffart 2003-08-23 13:57:24 UTC
Subject: kdenonbeta/kopete

CVS commit by ogoffart: 

Make the ordering of accounts working in libkpoete.
use this account order to find the preferred contact in a metacontact with multiple contact.

!!!!*****FIXME***TODO*****!!!
The account order is still not saved in the KConfig file.
KConfig does not give dirrect way (AFAIK) to save an order, unlike the old XML saving.
I still donn't know how I (or others?) will implement the saving of this order.

CCMAIL: 62439@bugs.kde.org 
CCMAIL: 54676@bugs.kde.org


  M +12 -3     kopete/conf/accountconfig.cpp   1.18
  M +21 -0     libkopete/kopeteaccountmanager.cpp   1.30
  M +15 -0     libkopete/kopeteaccountmanager.h   1.17
  M +8 -1      libkopete/kopetemetacontact.cpp   1.169



Comment 2 Kalle Dalheimer 2003-08-23 17:33:30 UTC
Subject: Re: kdenonbeta/kopete

What you could e.g. do is saving the names (or other unique identifiers) to a 
QStringList and write this QStringList to KConfig. KConfig will definitely 
keep the order in this list, and you can use it in order to restore the order 
of the entries.

Another solution is to store a position with each entry and sort by those. 
That's what e.g. KMail does for the accounts.

Kalle

On Saturday 23 August 2003 13:56, Olivier Goffart wrote:
> CVS commit by ogoffart:
>
> Make the ordering of accounts working in libkpoete.
> use this account order to find the preferred contact in a metacontact with
> multiple contact.
>
> !!!!*****FIXME***TODO*****!!!
> The account order is still not saved in the KConfig file.
> KConfig does not give dirrect way (AFAIK) to save an order, unlike the old
> XML saving. I still donn't know how I (or others?) will implement the
> saving of this order.
>
> CCMAIL: 62439@bugs.kde.org
> CCMAIL: 54676@bugs.kde.org
>
>
>   M +12 -3     kopete/conf/accountconfig.cpp   1.18
>   M +21 -0     libkopete/kopeteaccountmanager.cpp   1.30
>   M +15 -0     libkopete/kopeteaccountmanager.h   1.17
>   M +8 -1      libkopete/kopetemetacontact.cpp   1.169

Comment 3 Olivier Goffart 2003-09-13 23:58:32 UTC
*** Bug 64184 has been marked as a duplicate of this bug. ***
Comment 4 Matt Rogers 2003-09-20 22:11:44 UTC
Olivier, do you plan to take Kalle up on his suggestion? IIRC, there was a discussion 
about his way of doing it. Did you decide anything? 
Comment 5 Matt Rogers 2003-09-20 22:12:07 UTC
forgot to add that I can confirm this. 
Comment 6 Casey Allen Shobe 2003-10-10 04:10:28 UTC

*** This bug has been marked as a duplicate of 54676 ***
Comment 7 Olivier Goffart 2003-10-28 19:31:53 UTC
*** Bug 66552 has been marked as a duplicate of this bug. ***