Bug 67883 - lost settings from 3.1
Summary: lost settings from 3.1
Status: RESOLVED FIXED
Alias: None
Product: ksirc
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: Andrew Stanley-Jones
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-11 14:37 UTC by Lubos Lunak
Modified: 2003-11-15 02:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
ksircrc (1.11 KB, text/plain)
2003-11-11 14:40 UTC, Lubos Lunak
Details
session saved config file (530 bytes, text/plain)
2003-11-11 14:42 UTC, Lubos Lunak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lubos Lunak 2003-11-11 14:37:26 UTC
Version:            (using KDE KDE 3.1.93)
Installed from:    SuSE RPMs

I upgraded from kde3.1 to kde3.2beta1, and many settings have been lost in ksirc. Both ksircrc and the session saved config files are attached. Examples of settings that are lost/wrong are: The main window is no longer docked, ksirc apparently tries to connect to 'irc.kde.org:6667' as a hostname, my nick, name etc. are not saved ...
 (It doesn't seem to me ksirc usese kconf_update, but in case it does or you'll use it, it cannot update session saved files now - that should be fixed soon).
Comment 1 Lubos Lunak 2003-11-11 14:40:54 UTC
Created attachment 3148 [details]
ksircrc
Comment 2 Lubos Lunak 2003-11-11 14:42:13 UTC
Created attachment 3149 [details]
session saved config file
Comment 3 George Staikos 2003-11-14 01:47:54 UTC
I can reproduce.  Losing settings across upgrades is bad.
Comment 4 Andrew Stanley-Jones 2003-11-15 02:24:11 UTC
Subject: kdenetwork/ksirc

CVS commit by asj: 

This should fix it.  Someone might want to test it. :)

CCMAIL: 67883-done@bugs.kde.org


  M +9 -7      ksopts.cpp   1.48


--- kdenetwork/ksirc/ksopts.cpp  #1.47:1.48
@@ -336,14 +336,16 @@ void KSOptions::load( int sections )
             server["global"].server = "global";
             server["global"].globalCopy = false;
-            server["global"].nick = conf->readEntry("globalnick");
-            server["global"].altNick = conf->readEntry("globalaltNick");
-            server["global"].realName = conf->readEntry("globalrealName");
-            server["global"].userID = conf->readEntry("globaluserID");
-            server["global"].notifyList = conf->readListEntry("globalnotifyList");
-            if(server["global"].notifyList.count() == 0){
+
                 conf->setGroup( "StartUp" );
+            server["global"].nick = conf->readEntry("Nick");
+            server["global"].altNick = conf->readEntry("altNick");
+            server["global"].realName = conf->readEntry("RealName");
+            server["global"].userID = conf->readEntry("userID");
+            server["global"].notifyList = conf->readListEntry("NotifyList");
+            if(server["global"].notifyList.count() == 0){
                 server["global"].notifyList = conf->readListEntry("NotifyList");
-                conf->setGroup( "Server" );
             }
+
+            conf->setGroup( "Server" );
         }