Save all settings in talkfile dialog.

Save settings that haven't been and rename the configuration file value for the
talked folder. Since the folder was replaced with a list we can't use the old
value anymore so there's no need to keep a name that's not really suitable
anymore.

Solves FS#12634.

Change-Id: I8db2a536409b94c45f28db9418a11f11f57dfacb
This commit is contained in:
Dominik Riebeling 2012-06-14 22:36:54 +02:00
parent a9217bde27
commit 537dfe482f
5 changed files with 65 additions and 28 deletions

View file

@ -27,7 +27,7 @@ class RbSettings : public QObject
{
Q_OBJECT
public:
//! All user settings
enum UserSettings {
RbutilVersion,
@ -42,7 +42,14 @@ class RbSettings : public QObject
Language,
Tts,
UseTtsCorrections,
LastTalkedFolder,
TalkFolders,
TalkProcessFiles,
TalkProcessFolders,
TalkRecursive,
TalkSkipExisting,
TalkStripExtensions,
TalkIgnoreFiles,
TalkIgnoreWildcards,
VoiceLanguage,
TtsLanguage,
TtsOptions,
@ -61,7 +68,7 @@ class RbSettings : public QObject
EncoderQuality,
EncoderVolume,
};
//! call this to flush the user Settings
static void sync();
//! returns the filename of the usersettings file