[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/kget
From: Helge Deller <deller () kde ! org>
Date: 2003-10-31 23:25:46
[Download RAW message or body]
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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic