Bug 97857 - away messages aren't saved between sessions
Summary: away messages aren't saved between sessions
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: 0.9.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 12:00 UTC by Pino Toscano
Modified: 2005-02-08 16:47 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 Pino Toscano 2005-01-25 12:00:53 UTC
Version:           0.9.1 (using KDE 3.3.2,  (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-6)
OS:                Linux (i686) release 2.6.10

I have specificed in Kopete settings to remember 5 away messages.
When I set "Set away globally" and I write a new one, Kopete sets away with that message that is appened to the away message list in the menu.
But when I logout, all these messages are lost, because when I login again there are only the two default messages.
I have Kopete as a session application, that is closed when i logout and reopen when I login.
Comment 1 Olivier Goffart 2005-02-08 16:47:29 UTC
CVS commit by ogoffart: 

Fix Bug 97857: away messages aren't saved between sessions
BUG: 97857

It's a conflict with the old settings which were not removed.
The problem is fixed now, in KDE 3.4
If you can't wait, open your kopeterc, and remove every away messages from there.


  M +5 -8      kopeteaway.cpp   1.43


--- kdenetwork/kopete/libkopete/kopeteaway.cpp  #1.42:1.43
@@ -135,8 +135,9 @@ Kopete::Away::Away() : QObject( kapp , "
         config->setGroup("Away Messages");
 
-        /*
-        * Old config format
-        */
-        if(config->hasKey("Titles"))
+        if(config->hasKey("Messages"))
+        {
+                d->awayMessageList = config->readListEntry("Messages");
+        }
+        else if(config->hasKey("Titles"))  // Old config format
         {
                 QStringList titles = config->readListEntry("Titles");  // Get the titles
@@ -149,8 +150,4 @@ Kopete::Away::Away() : QObject( kapp , "
                 save();
         }
-        else if(config->hasKey("Messages"))
-        {
-                d->awayMessageList = config->readListEntry("Messages");
-        }
         else
         {