#include <QFile>
#include <QFileInfo>
-#include "settings/dolphinsettings.h"
-
namespace {
// String representation to mark the additional properties of
// the details view as customized by the user. See
m_autoSave(true),
m_node(0)
{
- GeneralSettings* settings = DolphinSettings::instance().generalSettings();
+ GeneralSettings* settings = GeneralSettings::self();
const bool useGlobalViewProps = settings->globalViewProps();
bool useDetailsViewWithPath = false;
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) {