Bug 62439 - Changing the order of accounts does not stick
Summary: Changing the order of accounts does not stick
Status: RESOLVED DUPLICATE of bug 54676
Alias: None
Product: kopete
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 64184 66552 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-10 07:46 UTC by Ken Zalewski
Modified: 2003-10-28 19:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***