From: Nicolas Lécureuil Date: Mon, 11 Jul 2011 20:47:01 +0000 (+0200) Subject: Use isEmpty() X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/3056126517c8003f7208e73d04162d4f553b53aa?ds=sidebyside Use isEmpty() --- diff --git a/src/views/dolphinmodel.cpp b/src/views/dolphinmodel.cpp index c999dfacd..eb63c25db 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.size() > 1 && name.at(1).isLetter()) { + if (!name.isEmpty() && name.at(1).isLetter()) { retString = name.at(1).toUpper(); } else { retString = i18nc("@title:group Name", m_others);