Commit ba0674dc authored by Frerich Raabe's avatar Frerich Raabe

- Moved the schemes configuration key into a "Tag guesser" configuration group,

  there are more configurable options to come which justify an own group.

svn path=/trunk/kdemultimedia/juk/; revision=214255
parent 78cdc524
......@@ -115,7 +115,9 @@ QString FileNameScheme::composeRegExp(const QString &s) const
QStringList TagGuesser::schemeStrings()
{
QStringList schemes = kapp->config()->readListEntry( "Filename schemes" );
KConfig *cfg = kapp->config();
cfg->setGroup("Tag guesser");
QStringList schemes = cfg->readListEntry( "Filename schemes" );
if ( schemes.isEmpty() ) {
schemes += "%a/%A/[%T] %t";
schemes += "%a - (%T) - %t [%c]";
......@@ -148,7 +150,9 @@ QStringList TagGuesser::schemeStrings()
void TagGuesser::setSchemeStrings(const QStringList &schemes)
{
kapp->config()->writeEntry("Filename schemes", schemes);
KConfig *cfg = kapp->config();
cfg->setGroup("Tag guesser");
cfg->writeEntry("Filename schemes", schemes);
}
TagGuesser::TagGuesser()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment