diff options
| author | Peter Penz <[email protected]> | 2012-03-07 22:12:07 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-03-07 22:18:59 +0100 |
| commit | 08a485349f2bd73682ac806b97d3630c3a7dd3fd (patch) | |
| tree | 196869487673eeca1f4d2a3b208efb0f329951d7 /src/views/viewproperties.cpp | |
| parent | 90e6190f13caa50773c5d84550a7b42a18adce13 (diff) | |
Allow custom sorting of details-view columns
Fix regression that Dolphin 2.0 did not allow to adjust the sorting
of the details-view columns.
BUG: 164696
FIXED-IN: 4.8.2
Diffstat (limited to 'src/views/viewproperties.cpp')
| -rw-r--r-- | src/views/viewproperties.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/views/viewproperties.cpp b/src/views/viewproperties.cpp index 9f8b4d8ba..36ec6bdb0 100644 --- a/src/views/viewproperties.cpp +++ b/src/views/viewproperties.cpp @@ -219,18 +219,7 @@ void ViewProperties::setAdditionalInfoList(const QList<DolphinView::AdditionalIn newInfoStringList.append(prefix + infoAccessor.value(info)); } - // Only update the information if it has been changed - bool changed = oldInfoStringList.count() != newInfoStringList.count(); - if (!changed) { - foreach (const QString& oldInfoString, oldInfoStringList) { - if (!newInfoStringList.contains(oldInfoString)) { - changed = true; - break; - } - } - } - - if (changed) { + if (oldInfoStringList != newInfoStringList) { const bool markCustomizedDetails = (m_node->viewMode() == DolphinView::DetailsView) && !newInfoStringList.contains(CustomizedDetailsString); if (markCustomizedDetails) { |
