X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d9eab08fcb8bfc56470a7f418465607888b5f1ba..509464cce954f7fc4b00a9dafc2bc6355eb99ec6:/src/views/viewproperties.cpp diff --git a/src/views/viewproperties.cpp b/src/views/viewproperties.cpp index 96a00dc1d..ff0c274be 100644 --- a/src/views/viewproperties.cpp +++ b/src/views/viewproperties.cpp @@ -284,7 +284,7 @@ QList ViewProperties::visibleRoles() const roles.append("text"); // Iterate through all stored keys and append all roles that match to - // the curren view mode. + // the current view mode. const QString prefix = viewModePrefix(); const int prefixLength = prefix.length(); @@ -426,7 +426,7 @@ void ViewProperties::convertNameRoleToTextRole() { QStringList visibleRoles = m_node->visibleRoles(); for (int i = 0; i < visibleRoles.count(); ++i) { - if (visibleRoles[i].endsWith("_name")) { + if (visibleRoles[i].endsWith(QLatin1String("_name"))) { const int leftLength = visibleRoles[i].length() - 5; visibleRoles[i] = visibleRoles[i].left(leftLength) + "_text"; }