Added "default" mount option to TDE hardware manager. This resolves bug 2593.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 71bd29a534)
pull/182/head
Michele Calgaro 8 years ago
parent e8b6bcbd2c
commit 14294b4b95

@ -1039,9 +1039,9 @@ TQStringList HALBackend::mountoptions(const TQString &name)
if (valids.contains("shortname")) if (valids.contains("shortname"))
{ {
TQString svalue = config.readEntry("shortname", "lower").lower(); TQString svalue = config.readEntry("shortname", "lower").lower();
if (svalue == "winnt") if (svalue == "windows nt")
result << "shortname=winnt"; result << "shortname=winnt";
else if (svalue == "win95") else if (svalue == "windows 95")
result << "shortname=win95"; result << "shortname=win95";
else if (svalue == "mixed") else if (svalue == "mixed")
result << "shortname=mixed"; result << "shortname=mixed";

@ -1042,16 +1042,17 @@ TQStringList TDEBackend::mountoptions(const TQString &name)
if (valids.contains("shortname")) { if (valids.contains("shortname")) {
TQString svalue = config.readEntry("shortname", "lower").lower(); TQString svalue = config.readEntry("shortname", "lower").lower();
if (svalue == "winnt") { // If the user choose 'default', no shortname is added to the mount option list
if (svalue == "windows nt") {
result << "shortname=winnt"; result << "shortname=winnt";
} }
else if (svalue == "win95") { else if (svalue == "windows 95") {
result << "shortname=win95"; result << "shortname=win95";
} }
else if (svalue == "mixed") { else if (svalue == "mixed") {
result << "shortname=mixed"; result << "shortname=mixed";
} }
else { else if (svalue == "lower"){
result << "shortname=lower"; result << "shortname=lower";
} }
} }

@ -184,6 +184,9 @@ Some of the options are tristate. Leave them "undefined" to let TDE choose the b
<property name="whatsThis" stdset="0"> <property name="whatsThis" stdset="0">
<string>&lt;h2&gt;Defines the behaviour for creation and display of filenames which fit into 8.3 characters. If a long name for a file exists, it will always be preferred display.&lt;/h2&gt; <string>&lt;h2&gt;Defines the behaviour for creation and display of filenames which fit into 8.3 characters. If a long name for a file exists, it will always be preferred display.&lt;/h2&gt;
&lt;h3&gt;&lt;b&gt;Default&lt;/b&gt;&lt;/h3&gt;
Do not force a short name option at all.
&lt;h3&gt;&lt;b&gt;Lower&lt;/b&gt;&lt;/h3&gt; &lt;h3&gt;&lt;b&gt;Lower&lt;/b&gt;&lt;/h3&gt;
Force the short name to lower case upon display; store a long name when the short name is not all upper case. Force the short name to lower case upon display; store a long name when the short name is not all upper case.
@ -244,6 +247,11 @@ Display the short name as is; store a long name when the short name is not all u
</property> </property>
</widget> </widget>
<widget class="TQComboBox" row="1" column="1"> <widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>Default</string>
</property>
</item>
<item> <item>
<property name="text"> <property name="text">
<string>Lower</string> <string>Lower</string>

Loading…
Cancel
Save