From 0659763dac784295b47b451206d91f0001c16b23 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 12 Jul 2011 00:33:09 +0200 Subject: Revert "Use isEmpty()" - the original code asked for a size > 1 and not >= 1... This reverts commit fa73fbfb84792d16dd56ebdeca1667ca12a597bd. CCMAIL: neoclust.kde@free.fr --- src/views/dolphinmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views/dolphinmodel.cpp') diff --git a/src/views/dolphinmodel.cpp b/src/views/dolphinmodel.cpp index eb63c25db..c999dfacd 100644 --- a/src/views/dolphinmodel.cpp +++ b/src/views/dolphinmodel.cpp @@ -186,7 +186,7 @@ QVariant DolphinModel::displayRoleData(const QModelIndex& index) const retString = name.at(0).toUpper(); else if (item.isHidden()) { if (name.at(0) == '.') { - if (!name.isEmpty() && name.at(1).isLetter()) { + if (name.size() > 1 && name.at(1).isLetter()) { retString = name.at(1).toUpper(); } else { retString = i18nc("@title:group Name", m_others); -- cgit v1.3