From kde-commits Fri Oct 31 23:25:46 2003 From: Helge Deller Date: Fri, 31 Oct 2003 23:25:46 +0000 To: kde-commits Subject: kdenetwork/kget X-MARC-Message: https://marc.info/?l=kde-commits&m=106764621601278 CVS commit by deller: roaming user fix - correct storage of sound file names in config file M +8 -8 settings.cpp 1.26 --- kdenetwork/kget/settings.cpp #1.25:1.26 @@ -63,9 +63,9 @@ Settings::load() b_useSound = config->readBoolEntry("UseSound", DEF_UseSound); sDebug << "locating sounds..." << locate("data", DEF_SoundAdded) << endl; - audioAdded = config->readEntry("Added", locate("data", DEF_SoundAdded)); + audioAdded = config->readPathEntry("Added", locate("data", DEF_SoundAdded)); sDebug << "audioadded= " << audioAdded << endl; - audioStarted = config->readEntry("Started", locate("data", DEF_SoundStarted)); - audioFinished = config->readEntry("Finished", locate("data", DEF_SoundFinished)); - audioFinishedAll = config->readEntry("FinishedAll", locate("data", DEF_SoundFinishedAll)); + audioStarted = config->readPathEntry("Started", locate("data", DEF_SoundStarted)); + audioFinished = config->readPathEntry("Finished", locate("data", DEF_SoundFinished)); + audioFinishedAll = config->readPathEntry("FinishedAll", locate("data", DEF_SoundFinishedAll)); b_useAnimation = config->readBoolEntry("UseAnimation", DEF_UseAnimation); @@ -268,8 +268,8 @@ void Settings::save() config->setGroup("System"); config->writeEntry("UseSound", b_useSound); - config->writeEntry("Added", audioAdded); - config->writeEntry("Started", audioStarted); - config->writeEntry("Finished", audioFinished); - config->writeEntry("FinishedAll", audioFinishedAll); + config->writePathEntry("Added", audioAdded); + config->writePathEntry("Started", audioStarted); + config->writePathEntry("Finished", audioFinished); + config->writePathEntry("FinishedAll", audioFinishedAll); config->writeEntry("UseAnimation", b_useAnimation);