|
|
|
@ -972,13 +972,6 @@ TQStringList HALBackend::mountoptions(const TQString &name)
|
|
|
|
|
result << tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( valids.contains("locale") )
|
|
|
|
|
{
|
|
|
|
|
value = config.readBoolEntry( "locale", true );
|
|
|
|
|
tmp = QString( "locale=%1" ).arg( value ? "true" : "false" );
|
|
|
|
|
result << tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (valids.contains("utf8"))
|
|
|
|
|
{
|
|
|
|
|
value = config.readBoolEntry("utf8", true);
|
|
|
|
@ -1063,7 +1056,7 @@ bool HALBackend::setMountoptions(const TQString &name, const TQStringList &optio
|
|
|
|
|
|
|
|
|
|
TQMap<TQString,TQString> valids = MediaManagerUtils::splitOptions(options);
|
|
|
|
|
|
|
|
|
|
const char *names[] = { "ro", "quiet", "atime", "uid", "utf8", "flush", "sync", "locale", 0 };
|
|
|
|
|
const char *names[] = { "ro", "quiet", "atime", "uid", "utf8", "flush", "sync", 0 };
|
|
|
|
|
for (int index = 0; names[index]; ++index)
|
|
|
|
|
if (valids.contains(names[index]))
|
|
|
|
|
config.writeEntry(names[index], valids[names[index]] == "true");
|
|
|
|
@ -1083,10 +1076,6 @@ bool HALBackend::setMountoptions(const TQString &name, const TQStringList &optio
|
|
|
|
|
config.writeEntry("automount", valids["automount"]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (valids.contains("locale") ) {
|
|
|
|
|
config.writeEntry("locale", valids["locale"]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1436,11 +1425,6 @@ TQString HALBackend::mount(const Medium *medium)
|
|
|
|
|
soptions << TQString("uid=%1").arg(getuid());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (valids["locale"] == "true")
|
|
|
|
|
{
|
|
|
|
|
soptions << QString("locale=%1").arg( KGlobal::locale()->language() );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (valids["ro"] == "true")
|
|
|
|
|
soptions << "ro";
|
|
|
|
|
|
|
|
|
|