summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-29 22:07:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-29 22:07:33 +0000
commit5c05e9d8ada35be2e42e540917c8eb12a0fac969 (patch)
treef925a22e92789dd587b4b5280f6b10b944984526
parentcfb87c21e448628f7d7250a0133172bcba9a761c (diff)
downloadtdebase-5c05e9d8ada35be2e42e540917c8eb12a0fac969.tar.gz
tdebase-5c05e9d8ada35be2e42e540917c8eb12a0fac969.zip
[CRITICAL] Fix removable media mount
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1181053 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--kioslave/media/mediamanager/halbackend.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/kioslave/media/mediamanager/halbackend.cpp b/kioslave/media/mediamanager/halbackend.cpp
index be5f07ccb..7b56d46ad 100644
--- a/kioslave/media/mediamanager/halbackend.cpp
+++ b/kioslave/media/mediamanager/halbackend.cpp
@@ -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";