Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/PanelView/krview.cpp
Show First 20 Lines • Show All 226 Lines • ▼ Show 20 Line(s) | 223 | { | |||
---|---|---|---|---|---|
227 | const KConfigGroup grpSvr(_config, "Look&Feel"); | 227 | const KConfigGroup grpSvr(_config, "Look&Feel"); | ||
228 | const bool numericPermissions = grpSvr.readEntry("Numeric permissions", _NumericPermissions); | 228 | const bool numericPermissions = grpSvr.readEntry("Numeric permissions", _NumericPermissions); | ||
229 | 229 | | |||
230 | int sortOps = 0; | 230 | int sortOps = 0; | ||
231 | if (grpSvr.readEntry("Show Directories First", true)) | 231 | if (grpSvr.readEntry("Show Directories First", true)) | ||
232 | sortOps |= KrViewProperties::DirsFirst; | 232 | sortOps |= KrViewProperties::DirsFirst; | ||
233 | if(grpSvr.readEntry("Always sort dirs by name", false)) | 233 | if(grpSvr.readEntry("Always sort dirs by name", false)) | ||
234 | sortOps |= KrViewProperties::AlwaysSortDirsByName; | 234 | sortOps |= KrViewProperties::AlwaysSortDirsByName; | ||
235 | if (!grpSvr.readEntry("Case Sensative Sort", _CaseSensativeSort)) | 235 | if (!grpSvr.readEntry("Case Sensitive Sort", _CaseSensitiveSort)) | ||
nmel: Would you please add the code to read old "Case Sensative Sort" and apply if it's set? This… | |||||
236 | sortOps |= KrViewProperties::IgnoreCase; | 236 | sortOps |= KrViewProperties::IgnoreCase; | ||
237 | if (grpSvr.readEntry("Locale Aware Sort", true)) | 237 | if (grpSvr.readEntry("Locale Aware Sort", true)) | ||
238 | sortOps |= KrViewProperties::LocaleAwareSort; | 238 | sortOps |= KrViewProperties::LocaleAwareSort; | ||
239 | KrViewProperties::SortOptions sortOptions = static_cast<KrViewProperties::SortOptions>(sortOps); | 239 | KrViewProperties::SortOptions sortOptions = static_cast<KrViewProperties::SortOptions>(sortOps); | ||
240 | 240 | | |||
241 | KrViewProperties::SortMethod sortMethod = static_cast<KrViewProperties::SortMethod>( | 241 | KrViewProperties::SortMethod sortMethod = static_cast<KrViewProperties::SortMethod>( | ||
242 | grpSvr.readEntry("Sort method", (int)_DefaultSortMethod)); | 242 | grpSvr.readEntry("Sort method", (int)_DefaultSortMethod)); | ||
243 | const bool humanReadableSize = grpSvr.readEntry("Human Readable Size", _HumanReadableSize); | 243 | const bool humanReadableSize = grpSvr.readEntry("Human Readable Size", _HumanReadableSize); | ||
▲ Show 20 Lines • Show All 980 Lines • Show Last 20 Lines |
Would you please add the code to read old "Case Sensative Sort" and apply if it's set? This will ensure smooth config migration.