Bug 97857

Summary: away messages aren't saved between sessions
Product: [Unmaintained] kopete Reporter: Pino Toscano <pino>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 0.9.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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
         {