┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Lécureuil <[email protected]>2011-07-11 22:47:01 +0200
committerNicolas Lécureuil <[email protected]>2011-07-11 22:47:01 +0200
commit3056126517c8003f7208e73d04162d4f553b53aa (patch)
tree8afab038723a91eafb3cfb7f8fd04a079c247ac6
parenta44e982f783d2e6f4b86c12d1f8c6ab3abaf9619 (diff)
Use isEmpty()
-rw-r--r--src/views/dolphinmodel.cpp2
1 files changed, 1 insertions, 1 deletions
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);